On Tue, 2004-01-13 at 14:38, Ammon Christiansen wrote: > I want to recurse directories and delete a certain string in all htm and > html files > > Is that what (g)awk is for? > If so, how do I do it, and if not, anyone have any ideas? >
You can do that with sed: grep -lr "stringToReplace" | xargs sed -i -e "s/stringToReplace//g" if the string spans more than one line (includes a newline character) it needs to be a bit more complex; otherwise, this should work just fine. Casey
signature.asc
Description: This is a digitally signed message part
_______________________________________________ newbies mailing list [EMAIL PROTECTED] http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
