list all files by modification date #1630
Replies: 1 comment
|
You can get a single global sort by collecting the files first, then giving them to one eza invocation. For Bash on Linux: mapfile -d '' files < <(find . -type f -print0)
if ((${#files[@]})); then
eza --long --sort=modified --reverse -- "${files[@]}"
fiThis includes regular files below the current directory, including hidden files, and displays the newest modified files first. Remove I tested this with eza 0.23.5 and files in separate directories with deliberately different modification times, including a filename containing a space. The output was one list sorted by timestamp across both directories. As this uses one argument list, it is subject to the OS command-line size limit for very large trees. The manual documents |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
is there a nice
ezaoption to list all files recursively (including subdirectories), but sorted by modification date only?So something as
but sorted by modified, NOT presorted per folder.
All reactions