Quote:>You simply have to convert the date range into the appropriate date offset.
This is what I was thinking of doing since I did find -mtime in the
man pages of find. But thanks for clarifying this, I wasn't sure if
you could do an offset like you suggested! :)
>find -mtime -9 -mtime +3
>Another thing you could do is convert your find command to Perl with
>find2perl, and then modify the resulting Perl script to do the date
>comparisons that you want.
I am actually doing this script in PERL now that you mention it. I'm
a newbie at Perl programming, but in essence I'm trying to write a
perl CGI script that filters files from several directories into a
drop down menu. One of these filters is by date. Is there a way to
read just the date of a file into a string? This may sound like a
complete waste of overhead but what I was doing was a
qx /ls -lrt/; (to simulate the UNIX command) and then
reading that into a string. then,
I did a substr with an offset to pull out the date out of the string,
counting the characters to that point. Am I completely wasting my
time doing so?
thanks for your help, I love you unix gurus!