make test files:
mkdir -p test; cd test touch short-file-name medium-file-name loooong-file-name
script:
ls |awk '{print length($0)"\t"$0}' |sort -n |cut --complement -f1
output:
short-file-name medium-file-name loooong-file-name
Peter.O
source share