Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: multiple file operations using perl one-liners

by ikegami (Pope)
on May 17, 2009 at 19:37 UTC ( #764542=note: print w/ replies, xml ) Need Help??


in reply to multiple file operations using perl one-liners

Safer and no longer:

perl -e'while(<>) { chomp; system zip => "-d", $_, "*exe*" }' oldfiles

Error checking (like a simple '-Mautodie' or 'or die "system: $?\n"') wouldn't hurt either.


Comment on Re: multiple file operations using perl one-liners
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2014-04-20 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls