Michael D. Bevilacqua on 23 Dec 2004 12:55:36 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] awk question


I did this creating a .t3mp file with the wanted output.
This was an extra step I took because I wasn't able to get
awk to write out to a file using '>', it would just create a
zero length file. What am I doing wrong?


for i in `grep -Frl 207.106.32.241 * | grep html$`; do awk '{ gsub("207.106.32.241", "ancss.org"); print }' $i >> $i.t3mp ; mv $i.t3mp $i; done


-- 
Regards,

Michael D. Bevilacqua


   ~
  . .
  /V\   michael@bevilacqua.us
 // \\
/(   )\
 ^`~'^

Attachment: pgp22Nvhx7fDm.pgp
Description: PGP signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug