Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Keeping only the $n newest files/directories in a diretory?

by Chady (Priest)
on Apr 19, 2003 at 10:35 UTC ( #251626=note: print w/replies, xml ) Need Help??


in reply to Keeping only the $n newest files/directories in a diretory?

well, you can use -M on the directories and sort through that for the last $n items. or you can parse the directory name and determine according to that.


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://251626]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2018-07-19 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (405 votes). Check out past polls.

    Notices?