Re: [gentoo-user] date-specific cp/mv RESOLVED

2006-09-29 Thread maxim wexler
> I believe the right syntax is: > > find /path/dir -type f -ctime -3 > > This should mean "show all files created for the > last 3 days". > > Use "-3" not "3" > That's it :) -Maxim __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best sp

Re: [gentoo-user] date-specific cp/mv

2006-09-28 Thread Daniel Iliev
maxim wexler wrote: >> find has many options related to searching by time >> (hours, >> minutes, etc) and you can select by atime, ctime or >> mtime. It's >> all in the man page >> > > I can't get it to work. I used -ctime, -mtime, -mmin. > The files were created on the 26th of this month us

Re: [gentoo-user] date-specific cp/mv

2006-09-28 Thread maxim wexler
> find has many options related to searching by time > (hours, > minutes, etc) and you can select by atime, ctime or > mtime. It's > all in the man page I can't get it to work. I used -ctime, -mtime, -mmin. The files were created on the 26th of this month using abcde. All the other files in the

Re: [gentoo-user] date-specific cp/mv

2006-09-28 Thread Alan McKinnon
On Thursday 28 September 2006 18:16, maxim wexler wrote: > Hi group, > > I'd like to be able to cp or mv certain files from a > dir according to their timestamp. > > man cp mentions the '--preserve' option but I don't > think that's what I need. > > Does somebody know of some sort of script or perl

Re: [gentoo-user] date-specific cp/mv

2006-09-28 Thread Dave V
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:

Re: [gentoo-user] date-specific cp/mv

2006-09-28 Thread Trey Gruel
On 9/28/06, maxim wexler <[EMAIL PROTECTED]> wrote: I'd like to be able to cp or mv certain files from a dir according to their timestamp. man cp mentions the '--preserve' option but I don't think that's what I need. Does somebody know of some sort of script or perl or python pass that'll do it

Re: [gentoo-user] date-specific cp/mv

2006-09-28 Thread darren kirby
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

[gentoo-user] date-specific cp/mv

2006-09-28 Thread maxim wexler
Hi group, I'd like to be able to cp or mv certain files from a dir according to their timestamp. man cp mentions the '--preserve' option but I don't think that's what I need. Does somebody know of some sort of script or perl or python pass that'll do it? -Maxim