in reply to Re: Removing Lines from a file
in thread Removing Lines from a file
perl -pe 'goto LINE if /^2nd/' myfile
$ perl -MO=Deparse -pe 'goto LINE if /^2nd/' myfile LINE: while (defined($_ = <ARGV>)) { goto LINE if /^2nd/; } continue { print $_; } -e syntax OK
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Removing Lines from a file
by johngg (Canon) on Oct 18, 2006 at 18:38 UTC |