The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
list the files but exclude the files in subdirectories shyjuezy UNIX for Dummies Questions & Answers 8 10-15-2008 01:42 PM
How to manage the .nfs files generated by the system dowell Filesystems, Disks and Memory 0 06-06-2008 01:25 PM
Ftp all the generated files im_new Shell Programming and Scripting 3 12-22-2007 06:46 AM
list of files bkan77 UNIX for Advanced & Expert Users 7 08-15-2007 11:09 AM
capture all the today files Teh Tiack Ein Shell Programming and Scripting 3 07-28-2005 06:30 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-05-2007
redlotus72 redlotus72 is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 69
How to list all the files which are not generated today

How to list all the files which are not generated today, and move all the above files to backup dir.
  #2 (permalink)  
Old 10-05-2007
lorcan lorcan is offline
Registered User
  
 

Join Date: May 2007
Posts: 219
Try,

Code:
find .  ! -mtime +1 ! -mtime 1
After this use the exec option to move the matching files to your backup dir
  #3 (permalink)  
Old 10-05-2007
devtakh devtakh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore
Posts: 514
find command

try this dude!

find /dirname -type f -mtime +1 -exec mv {} backup/ \;
or
find /dirname -type f -mtime +1 | xargs mv backup/

all the best


cheers,
Devaraj Takhellambam
Sponsored Links
Closed Thread

Bookmarks

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:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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