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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Don't know how to run awk.

Status
Not open for further replies.
Jan 24, 2002
5
0
0
ES
Hi CaKiwi:

Has been imposible for me to run the command. I don`t know why doesn't work i wrote this.

gawk /^<.*>$/ {print &quot;h&quot; ++i &quot;=&quot; &quot;\042&quot; $0 &quot;\042&quot;} tom //tom is the file i want to edit

AND

gawk tom //tom has the parameters

I cannot make it work

Would anybody help me?

Thanks
Tomix

 
Don't forget to quote your awk script if running from the command line ...

gawk '/^<.*>$/ {print &quot;h&quot; ++i &quot;=&quot; &quot;\042&quot; $0 &quot;\042&quot;}' tom

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top