Activating case sensitivity in `sort' command?
Hi,
This may be a stupid question. I used Mandrake LInux 10. I tried to do `ls | sort', and here's what it gives: Code:
~/logs/sync-wirawan0/wirawan0 $ (LC_ALL=C; LANG=C; ls |sort ) Wirawan |
Just a wild guess:
Is -f (--ignore-case) automatically aliassed? alias sort could give an answer to that. |
No, no. Of course not. I've checked that. :-)
|
I don't want to either answer incorrectly or make a fool out of myself, so let me ask this first: Using the same example, how do you desire the results to look? -- J.W.
|
I think, if the case-sensitivity is correct, it should have been like this:
MD5-BigVaults.diff-to-wp.diff MD5-BigVaults.diff-to-wp.diff~ MD5-BigVaults.txt MD5-Personal.txt MD5-Projects.diff-to-wp.diff MD5-Projects.diff-to-wp.diff~ MD5-Projects.txt MD5-Work.diff-to-wp.diff MD5-Work.diff-to-wp.diff~ MD5-Work.txt MD5-photos.txt TOC-BigVault.txt TOC-Personal.txt TOC-Projects.txt TOC-Work.txt TOC-photos.before-sync.txt TOC-photos.txt fsdiff-after-sync-20040623.txt fsdiff-after-sync-20040623.txt~ md5-unsorted That is, it was sorted from A-Z, then a-z. Why? Since the character code of A-Z is lower (smaller) than a-z. |
All times are GMT -5. The time now is 02:06 AM. |