Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Want to do One line Perl Command

by delirium (Chaplain)
on Jul 03, 2004 at 12:23 UTC ( #371573=note: print w/ replies, xml ) Need Help??


in reply to Want to do One line Perl Command

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


Comment on Re: Want to do One line Perl Command
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://371573]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2015-03-02 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (42 votes), past polls