Re: Numeric sorting in GNU ls

2002-02-22 Thread Bob Proulx
> Is there way to tell ls to sort filename "2" before file "10"? Use the 'ls -v' option. Read the 'info ls' documentation for more information on this. Note that you did not say which version of ls you were using. It is possible that your version is older and does not yet contain that option.

Numeric sorting in GNU ls

2002-02-21 Thread Markus Kuhn
Is there way to tell ls to sort filename "2" before file "10"? In order words, can the sorting order be made to follow /* * Compare two strings just like strcmp, but preserve decimal integer * sorting order, i.e. "2" < "10". Strings are sorted as if sequences * of digits were prefixed by a le