The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-15-2008
cheeba cheeba is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 3
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0