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:
You may use find command: find -type f -printf '%T+ %p\n' | sort | head -1
find
find -type f -printf '%T+ %p\n' | sort | head -1