Hi All,
I want to be able to read the contents of a file as below:-
==================================
There are 4 occurrences
These occurrences are listed below:
machine1---RUNNING
machine2---STOPPED
machine3---WORKING
machine4---RUNNING
==================================
I want the script to pick all the machines in RUNNING state i.e.
machines1 and 4 and assign their names to a variable for further
manipulation.
Do I use awk?
Please help
TIA