Jon Nelson on 23 Dec 2004 14:38:00 -0000


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

Re: [PLUG] awk question


Michael D. Bevilacqua said:
>
> 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?

Hmmm...It worked for me.

I tried your script and it worked I also tried:

    awk '{ gsub("207.106.32.241","ancss.org"); print }' *.html > bar.tmp

which also worked.

Jon
___________________________________________________________________________
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