The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 find files created after a specified date
Author: Dan 
Date:   30-11-03 16:57

I have a directory which contains files created by backups, one backup per day. I burn these to CD, but sometimes there are more files than will fit onto one disk. I more away the newer files like this:

# find . -newer phpads.2003.11.23.sql -exec mv {} tmp \;
mv: rename . to tmp/.: Invalid argument
mv: rename ./tmp to tmp/tmp: Invalid argument

I think you may need a trailing space at the end of the line.

--
Webmaster

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org