[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Find and copy script/piped command



> -----Original Message-----
> From: A. John Peters [mailto:ajpeters ajpconsult com] 
> Sent: Thursday, October 30, 2003 9:24 AM
> To: redhat-install-list redhat com
> Subject: Find and copy script/piped command
> 
> 
> I am trying to copy all files changed in the last 24 hours to 
> a new directory.
> 
> find /home/Nursery -mtime -1
> I want all the results copied to todays directroy
> cp {results} /home/Thursday/
> 
> If I have to I can tar with a z option.
> 
> Any hints?

Is this for backup purposes?  If so, wouldn't you want to preserve the
directory paths?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]