LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 08-25-2008, 09:14 PM   #1
visitnag
Member
 
Registered: Mar 2008
Posts: 147

Rep: Reputation: 15
move files of a particular directory


I recently took charge as an sys.administrator(RHEL4es). I am well versed with the linux commands but new to configure the crons...profiles... I want to move files from print directory which are say 3days old to some other directory(automatically or i run the shell every third day). Kindly give me detailed (step by step) guidance, including how to include it in the cron.

Example:

i hav files called fl1,fl3 created 3days back in /usr/pro/actuary/data/print, and /usr/pro/maker/print respectively . I want to mv these files to /usr1/printbkp.


i have somany subdirectories under /usr/pro which are again having print directories... so i want to move 3days older files of all print directories into /usr1/printbkp
 
Old 08-25-2008, 09:32 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Do you want the files moved to /usr1/printbkp to also be contained in a sub-directory tree similar to their source directory? Or do you just want all files moved to the directory /usr1/printbkp?
 
Old 08-25-2008, 09:45 PM   #3
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Please don't post the same question more than once. Responses here:

http://www.linuxquestions.org/questi...ectory-665038/
 
  


Closed 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
move files of a particular directory visitnag Linux - Desktop 17 09-27-2008 09:24 PM
move files of a particular directory visitnag Programming 1 08-24-2008 02:02 PM
Move directory of files siva19185 Linux - Newbie 3 07-02-2008 02:59 AM
Does anyone know how to move files to a particular directory using shell scripting RowanB Programming 3 11-11-2004 01:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration