Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: multiple file operations using perl one-liners

by ikegami (Patriarch)
on May 17, 2009 at 19:37 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-03-29 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found