How can I sort the results of
find? I want to sort by date created asc?
find /docs -type f | sort
Sorts by filename not date created. Thanks.
AFAIK, Linux doesn't record the creation time, so the short answer is you cannot.
For the modification time, try this: