![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding files in subdirectories from one location | endl | UNIX for Dummies Questions & Answers | 2 | 08-20-2008 01:05 PM |
| copying files from one location to another based on a list | rebornhonest | UNIX for Dummies Questions & Answers | 4 | 11-30-2007 12:32 PM |
| excutable script to copy a file to a different location. | nazehcalil | UNIX for Dummies Questions & Answers | 4 | 12-21-2006 06:17 AM |
| Location of users cron files | JimJim | UNIX for Dummies Questions & Answers | 3 | 01-25-2005 02:51 AM |
| Location of C files on a Unix Environment | HelpMeIAmLost | UNIX for Dummies Questions & Answers | 2 | 12-05-2003 12:13 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I need help in forming a script to copy files from one location which has a sub directory structure to another location with similar sub directory structure,
say location 1, /home/rick/tmp_files/1-12/00-25/ here 1-12 are the number of sub directories under tmp_files and 00-25 are sub directories under each of directory 1-12 i need to copy files older than 30 days to similar location /home/rick/new_files/1-12/00-25/ Can any one help me with the logic please. Thanks in Advance |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
One (nice) way to do the job with cpio:
Code:
#!/bin/sh cd /home/rick/tmp_files find * -mtime +30 -print | cpio -pvdmu /home/rick/new_files |
|||
| Google The UNIX and Linux Forums |