Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 studying the Monastery: (17)
As of 2015-07-29 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls