I have input with single filed in each line, like.
$ echo "aaa1\naaa2\nbbbbb0\naaa11\nbbbbb10\nbbbbb1\nbbbbb8\naaa9"
aaa1
aaa2
bbbbb0
aaa11
bbbbb10
bbbbb1
bbbbb8
aaa9
and can do "by number" sorting in that way:
$ echo "aaa1\naaa2\nbbbbb0\naaa11\nbbbbb10\nbbbbb1\nbbbbb8\naaa9"|sort -kn1.4 -kn1.6
bbbbb0
bbbbb1
bbbbb8
bbbbb10
aaa1
aaa2
aaa9
aaa11
Is there a universal command for any length of leading text + a number?