Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

finding files and subdir

Status
Not open for further replies.

mohmin

Technical User
Jun 13, 2005
38
US
Guys,
I will need a command (or string of commands) which will look into the directory /apps/ds1 and find all files and subdirectories created/modified in last 24 hours and send those files and subdirectories to a directory /tpbk.


Will appreciate.
 
hi
you can do something like this

( make sure /tpbk directory exists )

cd /apps/ds1

find . -xdev -depth -mtime +1 -print | cpio -pudm /tpbk

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top