> -----Original Message----- > From: Bob Showalter [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 25, 2002 9:46 AM > To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] > Subject: RE: help about perl -pi -e > > ... > > Do you want to delete all the lines in each file > that follow "sub html_base[sS]"? If so, try this: > > perl -n -i.bak -e 'print unless /sub html_base[sS]/ .. eof'
Oops, I forgot to put some files on there. Should be: perl -n -i.bak -e 'print unless /sub html_base[sS]/ .. eof' *.cgi or similar. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]