print each file’s last modification time (%T+) and its name (%P):
$ find . -type f -printf '%T+ %P\n'
Because the time stamp is printed first and also in a suitable way, this is what we use to sort the files within a directory by their last modification time.
Leave a Reply