The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to move file pointer to a particular line in c user_prady High Level Programming 7 03-26-2008 08:32 PM
Multiple stage file move? ccvortex UNIX for Dummies Questions & Answers 2 02-21-2008 03:02 PM
ftp: get list of file to get. Retrieve and move them bbabr Shell Programming and Scripting 9 12-17-2007 09:02 AM
move from one IP to another >ystrdays file maverick Shell Programming and Scripting 14 11-12-2003 02:44 AM
help move file hassan2 UNIX for Advanced & Expert Users 1 04-23-2002 11:31 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-03-2005
ust ust is offline
Registered User
 

Join Date: Feb 2005
Posts: 93
move file

In the directory /tmp , there are some new files will be created to it by time to time , I want to mv the files that are created within 15 minutes to other direcory eg. /tmp/backup , could suggest what can I do ? thx
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-04-2005
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,662
find /tmp -name '*.*' -cmin 15 -exec mv {} /tmp/backup \;

vino
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0