I used to use this for moving old mail to an archive folder. Just change the directories, and you should be golden. alias archive='find ~/.maildir/inbox/cur -mtime +30 -exec mv {} ~/.maildir/inbox/archive/cur/. \;'
Dave On Thu, 28 Sep 2006 09:24:25 -0700 darren kirby <[EMAIL PROTECTED]> wrote: > quoth the maxim wexler: > > Hi group, > > > > I'd like to be able to cp or mv certain files from a > > dir according to their timestamp. > > Have a look at find. You can whip up a one-liner using the -atime, -mtime > or -ctime tests (depending on your intent) and use -exec to do the cp or > mv... > > > -Maxim > > -d > -- > darren kirby :: Part of the problem since 1976 :: http://badcomputer.org > "...the number of UNIX installations has grown to 10, with more expected..." > - Dennis Ritchie and Ken Thompson, June 1972 > -- > gentoo-user@gentoo.org mailing list > -- <Omnic> another .sig addition
pgpBfhkNOhvF2.pgp
Description: PGP signature