Find files and see most recent

find ~/Documents -name *.odg -printf "%TY-%Tm-%Td %-90p\n" 2>/dev/null | sort

%-90p shows filename taking up 90 characters and then the next field (if wider shows whole thing)

%TY-%Tm-%Td = Y-m-d e.g. 2023-10-30

One thought on “Find files and see most recent

Comments are closed.