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
For this particular list of files, sort numerically starting at the fifth character of the first field.
$ ls file*|sort -k1.5n file1 file2 file11 file12