Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    Perhaps something as simple as stat -c "%Y %n" * | sort -gk1,1r -gk2,2`? Assumes no special characters in the file names, doesn't find hidden files, etc. Commented Apr 3, 2022 at 14:56
  • 1
    ... or perhaps (since no specific shell is tagged) zsh with the Om and on glob qualifiers ex. zsh -c 'print -rC1 *.JPG(NOmon)' Commented Apr 3, 2022 at 15:03