Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Finder sorting different to shell sorting' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Finder sorting different to shell sorting
Authored by: thaigan on Jun 25, '03 07:37:18PM

'ls -v' and 'ls -lv' don't seem to work for me at all; any ideas why?

However, this works for me:
ls | sort -n



[ Reply to This | # ]
Finder sorting different to shell sorting
Authored by: thaigan on Jun 25, '03 07:40:15PM

In fact, this is from the manpage for ls:
-v Force unedited printing of non-graphic characters; this is the default when output is not to a terminal.



[ Reply to This | # ]
Finder sorting different to shell sorting - solved, sorta
Authored by: haighy on Jun 26, '03 04:05:05AM

Thanks for the helpful suggestions...however there still exists a problem in that when recursively processing files using perl and File::Find, they're returned in the default shell order. So if I rename a file in the Finder to insert it in between two existing files, such as calling a file 011 to put it between 01 and 02, they'll be sorted correctly when the perl script runs but not when viewing them in the Finder. If you get me. Anyway, I found that if I named it 01a it'll be sorted identically in both situations. So I've ceased despairing :o)



[ Reply to This | # ]