DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
ls order by filename length
for i in `ls`; do LEN=`expr length $i`; echo $LEN $i; done | sort -n
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#ls
#order
#filename
#length
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit