I use ls -t * | head -n1
(in the OS X bash shell) to identify the most recently modified file in a working directory. How would I write the command to also iterate through subdirectories? What I am looking for is the last modified file anywhere in the working directory, including in subdirectories.
The post How can I list (ls) the 5 last modified files in a directory? and others like it do not address iterating through subdirectories--that's the specific issue I'm trying to solve here.