We have a winner!!! I had to put a -print instead of print but it worked like a charm. Thanks, Steve R P Herrold wrote: > On Fri, 27 May 2005, steve Phariss wrote: > >> I am trying to replace all instances of .html to .php in multiple >> files (same directory) I have tried a few of the sed command scripts >> I found on the web, but they do not seem to be working. > > > for i in `find _start_directory_ type f -a print`; do > cp $i $i.backup > sed -e 's/\.html/\.php/g' < $i.backup > $i > done > > should work, and yet leave a safety pristine copy behind > > - Russ Herrold > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change you mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss