Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: Newbie ques...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 2121 of 2370
Post > Topic >>

Re: Newbie question on awk

by Ted Davis <tdavis@[EMAIL PROTECTED] > Jan 4, 2008 at 07:53 PM

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.
 




 4 Posts in Topic:
Newbie question on awk
Zinger <zmasood@[EMAIL  2008-01-04 08:24:46 
Re: Newbie question on awk
loki harfagr <loki@[EM  2008-01-04 16:51:18 
Re: Newbie question on awk
Ed Morton <morton@[EMA  2008-01-04 11:03:23 
Re: Newbie question on awk
Ted Davis <tdavis@[EMA  2008-01-04 19:53:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 6 17:57:40 CDT 2008.