You are not logged in.

#1 2005-08-02 19:18:31

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 331
Website

Copying files by date

Hi, I am trying to find out how to copy files by date, or preferably by date and time.

I have 21,000 files, of which about 1000 need to be resubmitted to a mail queue. The only real differentiating factor is the date and time of creation.

Any one here know of any utilities?


Kind regards

Benedict White

Offline

#2 2005-08-02 21:17:06

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Copying files by date

I would say use find and use the -exec option to copy

e.g.

find /path -mtime 10 -exec cp {} ;

You have to check the syntax but that should easily cover it - have a good read of the find man pages

Offline

Board footer

Powered by FluxBB