On Thursday 25 April 2002 15:52, Bob Showalter wrote: | > -----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.
thanks a lot for helping. someone gave me the solution: perl -p0i -e 's/sub html_base.*//s' *.cgi it did exactly what i wanted: remove all the lines below "sub html_base" thanks again Alain Scieur -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]