I want to get every files that are between 2 date with this format : YYYY-MM-DD HH:mm
I have some constraints too : i can't write files even in /tmp, and i can't use find --newermt
because it's an old server.
I tried to use awk without success :
ls -l --time-style=long-iso | awk '{ if (mktime(gensub ("-", " ", $6) " " gensub (":", " ", $7) " 00") >= mktime(gensub ("-", " ", gensub (":", " ", "2014-08-26 12:30")) " 00") && mktime(gensub ("-", " ", $6) " " gensub (":", " ", $7) " 00") <= mktime(gensub ("-", " ", gensub (":", " ", "2014-08-26 12:30")) " 00")) print $8 }'
Thanks in advance !