On Fri, 04 Jan 2008 08:24:46 -0800, Zinger wrote:
> 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?
I might, or might not, depending on the operating system and what I wanted
to do with the list. It is also unclear whether you want all the names in
a single string, one at a time in a variable, or in a table.
What are you trying to do? in what operating system?
--
T.E.D. (tdavis@[EMAIL PROTECTED]
) UMR becomes MST soon.


|