[CentOS] Copying files from specific date.

Jim Perrin jperrin at gmail.com
Mon Jun 9 15:30:16 UTC 2008

On Mon, Jun 9, 2008 at 11:16 AM, Rajeev R. Veedu <rajeev at cracknell.com> wrote:
> Dear all,
> Does anyone aware of any utility  to copy files which are created or modify
> form a specific date ?.

Use find with either -exec or with xargs, and pass it either a -ctime
or -mtime option for what you need.

for example, find /path/ -type f -mtime -2 -name '*.txt'  -exec cp {}

this may not be 100% syntactically correct, but should give you the
general idea.

During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell

More information about the CentOS mailing list