I\'m trying to write a script that will display the name of oldest file within the directory that the script is executed from.
This is what I have so far:
The following oneliner finds the oldest file in the whole subtree and reports it using the long format and relative full path. What else could you ever need?
ls -ltd $(find . -type f) | tail -1