> 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
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
> 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
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
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:
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
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
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
8 matches
Mail list logo