Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Command line file sorting

by sgt (Deacon)
on Sep 05, 2007 at 21:28 UTC ( [id://637271]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
    % echo dir*/ | xargs -n1 | sort -rnt- -k2,3 | perl -lne 'print if $. =
    +=2'
    
  2. or download this
    % NL='
    > '
    ...
    dir-100-9
    

Log In?
Username:
Password:

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

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

    No recent polls found