On Tue, 2003-09-09 at 15:16, Michael Ryan Byrd wrote:
> On my redhat box, I need to search through a bunch of directories (nested) in my
> webroot that contain many different kinds of files. 
> 
> Inside all the .txt and .html files I need to replace the word "foo" with "bar"
> 
> Anybody got a nifty command line creation for that task?

find . -name *.txt -or -name *.html | xargs replace foo bar --

Jacob


____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to