![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Want to do One line Perl Commandby delirium (Chaplain) |
on Jul 03, 2004 at 12:23 UTC ( [id://371573]=note: print w/replies, xml ) | Need Help?? |
If we make an assumption that any line that doesn't have a .c file is an error statement... perl -lne '/\.c$/?$h{$l=$_}++:delete$h{$l}}{unlink keys%h' file.txt
In Section
Seekers of Perl Wisdom
|
|