chiark / gitweb /
sort files numerically
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 17 Jan 2006 23:12:37 +0000 (23:12 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 17 Jan 2006 23:12:37 +0000 (23:12 +0000)
skeleton-gallery

index 0d4a319..e4e3993 100755 (executable)
@@ -10,7 +10,7 @@ EOF
 
 index=0
 
-for x in *.jpg; do
+for x in `ls *.jpg | sort -n`; do
     index=$(($index + 1))
     if [ "$index" -ne 1 ]; then
        echo