2 ms·
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...
by andrewflnr 9y ago
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...
- stouset 9y agoAnother annoyance is sorting hostnames, which reasonable sort right-to-left with period-delineated fields.
- gdickie 9y agoWhen 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".