posted 16 years ago
Hi All,
I hae a need of a Unix shell script which prompt me to input "From" and "To" date (dd/mm/yyyy) format. When I press enter it should print all the file names modified between given dates. e.g.
Consider following list of files in a particular directory –
File Name Date Modified (dd/mm/yyyy)
a.txt 12/01/2009
b.txt 11/01/2009
c.txt 10/01/2009
d.txt 09/01/2009
e.txt 08/01/2009
f.txt 07/01/2009
g.txt 06/01/2009
h.txt 05/01/2009
If I input From date = 06/01/2009 And To date = 09/01/2009, Then output should be -
g.txt
f.txt
e.txt
d.txt
Thanks a lot For any help.
Regards
SaurabhSri (SCJP 1.5)