[update] tested and working command for sort & output
1 message · started by Devi Garcia on Feb 13, 2026
[update] tested and working command for sort & output
From Devi Garcia · Feb 13, 2026
Last command errors out on making the output.txt
find /path/to/directory -type f -printf "%f\n" |
awk -F. 'NF>1{print tolower($NF), $0} NF==1{print "noext", $0}' |
sort -k1,1 -k2,2 |
cut -d' ' -f2- |
column -c 120 > output.txt
This one sorts by ext and outputs to said file.. confirmed working on a Ubuntu system at the WHC