1
vote
Sorting ls output by date in filename, in reverse order
This will list all files recursively with ls output and reverse sorted by modified time (mtime):
find -print0 -type f directory_path | xargs -0 ls -ltr
Peform the search more quickly with fd
fd -0 -t ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sort × 994text-processing × 172
awk × 134
linux × 111
bash × 108
shell-script × 82
uniq × 73
ls × 65
shell × 61
files × 61
grep × 61
find × 51
sed × 46
command-line × 43
locale × 34
date × 33
filenames × 32
scripting × 22
csv × 22
numeric-data × 20
join × 19
pipe × 18
cut × 17
disk-usage × 15
unicode × 15