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


Click here to return to the 'Sort ls output in true numerical order' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Sort ls output in true numerical order
Authored by: McBainLives on Jul 25, '03 07:40:01PM

Personally, I just include leading zeroes in numbers (e.g., "Folder 01) when I expect there to be more than 9 items in the list. No unix needed!



[ Reply to This | # ]
Sort ls output in true numerical order
Authored by: Mikey-San on Jul 25, '03 07:48:57PM

Yeah, that's the ideal way to do it, but what if you can't for some reason? (Make one up.) Coug and I thought it was a neat problem to work on.

Still, though, the leading-zero numbering scheme is the easiest thing, yeah.



[ Reply to This | # ]