find sort by date

gnu_logo

Linux commands to sort found files by date.

This post shows the most useful answer I saw on https://unix.stackexchange.com to sort found files. I also add how to sort the files modified in the last 10 minutes.

Commands

Sort all files found by time modified

find . your-options -printf "%T+\t%p\n" | sort

Sort all files modified less than 12 minutes ago

find . -cmin -12 -printf "%T+\t%p\n" | sort

References

  • See original link and answer from angus

  • Free Online HTML Escape / Unescape Tool - FreeFormatter.com

  • Find man page @ link

  • GNU image from link