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.
findlinuxsort
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.
Best Answer
AFAIK, Linux doesn't record the creation time, so the short answer is you cannot.
For the modification time, try this:
or: