|
Home > Archive > Unix Shell > October 2006 > Comparing modified time and date for files
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Comparing modified time and date for files
|
|
| mark.pollard@cwfi.co.fk 2006-10-20, 1:22 pm |
| I need to create a script that compares the mtime of a file and finds
all files modified in a directory after the mtime of that file. I need
to be able to do this by hours, minutes and seconds as well as year,
days and months. Unfortunately all I seem to be able to find is how to
find files that have been modified more than equal to or less than a
certain amount of days ago.
If anyone could offer me some advice I would be very grateful.
Mark
| |
| Chris Mattern 2006-10-20, 7:23 pm |
| In article <1161360377.096215.296120@m7g2000cwm.googlegroups.com>,
mark.pollard@cwfi.co.fk wrote:
>I need to create a script that compares the mtime of a file and finds
>all files modified in a directory after the mtime of that file. I need
>to be able to do this by hours, minutes and seconds as well as year,
>days and months. Unfortunately all I seem to be able to find is how to
>find files that have been modified more than equal to or less than a
>certain amount of days ago.
>
>If anyone could offer me some advice I would be very grateful.
>
>Mark
>
Reread 'man find'. You should be able to find the expression
"-newer".
--
Christopher Mattern
"Which one you figure tracked us?"
"The ugly one, sir."
"...Could you be more specific?"
|
|
|
|
|