![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10 | Przemek | SUN Solaris | 4 | 05-26-2008 01:11 AM |
| find size of folders and its subfolders with the Owner details | bsandeep_80 | UNIX for Advanced & Expert Users | 5 | 04-15-2008 04:03 AM |
| How to find files whose case is unknown | mitkapadia | UNIX for Dummies Questions & Answers | 3 | 04-11-2008 06:55 AM |
| How to create folders/subfolders using shellscript | ram2s2001 | Shell Programming and Scripting | 2 | 04-05-2006 06:20 AM |
| how to find the chid process id from given parent process id | guhas | Shell Programming and Scripting | 3 | 10-13-2005 09:13 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
find, mv and create unknown parent & subfolders
I searched the forum rather thoroughly but still could not find the answer. Hopefully the solution is right under my nose.
Here what I need to do, move older data to a Archive folder that is 18 months old and older. I would like to use the following command, find departmentx/* -mtime 530 -exec mv {} Archive/departmentx/{} \; of course the problem is, there are some subfolders & parent folders within this search that will need to be created so the files can be moved into them, otherwise I just get errors. Any Ideas? thanks in advance |
| Bookmarks |
| Tags |
| cpio, mtime |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|