Michael D. Bevilacqua on 26 Dec 2004 18:13:28 -0000 |
On Thu, Dec 23, 2004 at 11:12:52AM -0500, Walt Mankowski wrote: > One way to avoid the temp file is to use Perl instead of AWK: > > for i in `find . -name '*.html'`; do perl -pi -e 's/207\.106\.32\.241/ancss.org/g' $i; done > > This is also a bit more efficient since it's only reading each file > once instead of twice as in your method. > > See perldoc perlrun for documentation on perl's -p and -i parameters. Yes, that's the ticket. Thanks Walt. -- Regards, Michael D. Bevilacqua ~ . . /V\ michael@bevilacqua.us // \\ /( )\ ^`~'^ Attachment:
pgpV7OsownuuB.pgp ___________________________________________________________________________ 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
|
|