Jorge Goncalvez wrote: > > Hi, I would like to parse a file and delete the entire line if it begins with > subnet. > How can I do this in Perl?
perl -ni -e'/^subnet/ or print' yourfile.txt Or perl -pi -e's/^subnet.*//s' yourfile.txt John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]