Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

writing awk commands into a file 1

Status
Not open for further replies.

New2awk

MIS
Aug 8, 2005
12
AT
Hi I wrote some lines in awk and now I wanted to write them into a file, but there always occur some errors.
Hope someone can help me.

awk '/bringUp/' V03_autsfce12_26-07-05.xml > bringUp.txt

awk '{if ($2=="Status=\"bringUp\"") print $4 > "New.txt";
else if ($3=="Status=\"bringUp\"") print $2 > "New.txt";
else if($4=="Status=\"bringUp\"") print $3 > "New.txt";}' bringUp.txt

awk '{split($1,i,"\"")
print i[2] > "Neu.txt";}' New.txt


Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top