Do you know where your variables are? | |
PerlMonks |
Re: Answer: How can I find and remove a line from a file.by mpd (Monk) |
on Aug 30, 2003 at 05:20 UTC ( [id://287876]=note: print w/replies, xml ) | Need Help?? |
If you know the exact line number you want to "delete," try this one-liner: perl -ni -e "print unless $. == $linenum" <filename>
In Section
Seekers of Perl Wisdom
|
|