How can I order files in a directory by their true numeric order.
file1.txt file2.txt file11.txt ...
I think it\'s called : Natural Order
If all filenames are fileSOMENUMBER.txt, try this:
fileSOMENUMBER.txt
ls -1|sed 's:^[^0-9]*\([0-9]*\).*$:\1:g'|sort -n|sed 's:^\(.*\)$:file\1.txt:g'