Answers for "ls order by filename length"

0

ls order by filename length

for i in `ls`; do LEN=`expr length $i`; echo $LEN $i; done | sort -n
Posted by: Guest on October-04-2021

Browse Popular Code Answers by Language