in reply to Re^4: Sorting files by 3 numbers in the name
in thread Sorting files by 3 numbers in the name
Unfortunately, your suggestion is not much safer. It will help only if the first field is the only one that is not of fixed length.
Either sort should work with tobyink's suggestion to replace the join with sprintf. You can think of the result as a number formed by multiplying each field by different power of ten and then adding them.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Sorting files by 3 numbers in the name
by LanX (Saint) on May 28, 2017 at 18:56 UTC |