Im trying to find files on my computer that has been created 1 hour before and 1 hour after a particular file has been created.
This is the method i tried -
find /root -newermt "2012-10-04 1800" -and -newermt "2012-10-04 2000" -exec ls -ldb {} \;
the directory on my linux is root, the particular file created was created at 19:00
this is another method i tried which work but it only displayed one result of after or before not both! >
find /root/Downloads -type f \( -newer /root/Downloads/alex.txt ! -newer /root/Downloads/hesham.txt \)