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 > Newbie question...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 2121 of 2317
Post > Topic >>

Newbie question on awk

by Zinger <zmasood@[EMAIL PROTECTED] > Jan 4, 2008 at 08:24 AM

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
 




 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 Thu Jul 24 15:14:49 CDT 2008.