in reply to Re: How can I find and delete a line from a file?
in thread How can I find and delete a line from a file?
If you know the exact line number you want to "delete," try this one-liner:
perl -ni -e "print unless $. == $linenum" <filename>
perl -ni -e "print unless $. == $linenum" <filename>
|
---|
In Section
Seekers of Perl Wisdom