I have a lot of files, of which I need to show only those created in the last 3 hours, and sort this list by date. I tried to do it with the following command:
find /root/shell/copy/ \( -type f -mmin +180 \) | get_crtime | xargs ls -t | head -1
get_crtime is a function created for .bashrc as shown in this example to find out the date of creation for a file.
How can I use the command correctly?
