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 -->
  #2 (permalink)  
Old 05-28-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,728
You want mtime - time the file was last modified.
I use touch and -newer in find for exact results:
Code:
/home/jmcnama> touch -t 200905280000 dummy2
/home/jmcnama> touch -t 200905270000 dummy1
/home/jmcnama> ls -l dummy*
-rw-rw-rw-   1 jmcnama    prog             0 May 27 00:00 dummy1
-rw-rw-rw-   1 jmcnama    prog             0 May 28 00:00 dummy2

/home/jmcnama> find . \( -newer dummy1 -a  ! -newer dummy2 \)
./t.awk
./filename
./dummy2