18 February 2026

How to sort by time the result of the $ find command?

$ find . -iname "applied*" -type f -printf '%TY-%Tm-%Td %TH:%TM %p\n' | sort -r

$ find . -iname "applied*" -type f -printf '%T+ %p\n' | sort -r

No comments:

Post a Comment