On Tue, 9 Sep 2003, Gary Thornock wrote: > find . -type f -name "*.txt" -name "*.html" | xargs plrename "s/foo/bar/g;" > > where plrename is the following script (I keep mine in /usr/local/bin): > > #!/usr/bin/perl > # rename -- Larry's Filename Fixer
I think he's looking for a search/replace inside the actual file, not a renaming function, i.e. > Inside all the .txt and .html files I need to replace the word "foo" > with "bar" I remember UltraEdit had a function like this, but that's Windoze ... you could replace "Larry's Filename Fixer" with a s/foo/bar/g perl script, but there's got to be an easier way to do it. ~ ross ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
