If you want to sort all files of a folder and its subfolders by modified date and time, Here is the command.
If you want to reverse the sequence i.e. latest modified should be on top.
find . -type f -printf "%T@ %Tc %p\n" | sort -n
Latest modified file will be last in the sequence.If you want to reverse the sequence i.e. latest modified should be on top.
find . -type f -printf "%T@ %Tc %p\n" | sort -nr
Dot (.) indicates the present working directory. You can use absolute path also.
No comments:
Post a Comment