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 > Special Forums > UNIX Desktop for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-28-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,759
Code:
find . \( -newer dummy1 -a ! -newer dummy2 \)
This just lists the files that fit the time constraint

Code:
find . \( -newer dummy1 -a ! -newer dummy2 \)  |
while read filename
do
  # do stuff with $filename here  examples:  put the  file in another directory
   mv $filename /path/to/new/directory/ 
done