Re:Naming things (2015) [pdf]
by andrewflnr on Friday August 18, 2017 @02:32AM
(#15044030)
My only real concern is with left-padding numbers with 0s when you don't know in advance how big the numbers are going to get. Do you pad to 2 or 3 digits or...
[ Parent
| on HN ]
When you have a long list of numbered filenames with no padding, pipe the list through "sort -V" for "version number" ordering.
Edit: Glitchmr has a better solution below, "ls -v".