in reply to multiple file operations using perl one-liners
Am I missing something or is this far too complicated?
Why are you sorting your files when you want to process all of them anyway?
And I can't see a real reason for your "xcol" or an intermediate file, you can do all of it one go like this (-n does the looping here):
du -b */*/old.zip | perl -ne 'chomp; my $f = (split /t/)[1]; system qq +{zip -d $f "*exe*"}'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: multiple file operations using perl one-liners
by ikegami (Patriarch) on May 17, 2009 at 19:47 UTC | |
by sflitman (Hermit) on May 17, 2009 at 22:03 UTC | |
by morgon (Priest) on May 17, 2009 at 22:36 UTC | |
by jwkrahn (Abbot) on May 18, 2009 at 01:51 UTC | |
by ikegami (Patriarch) on May 18, 2009 at 03:20 UTC | |
by jwkrahn (Abbot) on May 18, 2009 at 06:00 UTC | |
by ikegami (Patriarch) on May 18, 2009 at 07:10 UTC |
In Section
Cool Uses for Perl