![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re: Command line file sortingby sgt (Deacon) |
on Sep 05, 2007 at 21:28 UTC ( #637271=note: print w/replies, xml ) | Need Help?? |
well artist gave essentially a un*x golf solution. I'll recast it and comment on a couple tricks. first 'echo */' (or print) is a good way of getting directories if you are using a posix shell.
the 'echo */ | xargs -n1' can be seen as a poor man's transpose. It is useful if you know your paths! spaces don't work directly ...and xargs understands some quoting In the end it is safer to use: cheers --stephan
In Section
Seekers of Perl Wisdom
|
|