I read the UNIX Find a File Command article, but am looking for something even more specific — using the find command.
I can get the filename via ls
ls -1tT ~/desktop/. | head -1
that I can turn into
ls -1tT ~/desktop/*.* | head -1 /users/username/dropbox/subfolder/
using back-quotes around ls -1tT ~/desktop/ . | head -1
NOTE: back-quotes don’t seem to work in the editor
but I’ve seen a number of scattered pages that suggest not to use the ls — recommending find instead, but
- not showing me how to do this same thing with the find command
- and not saying why the ls method isn’t suggested
THANKS in advance.