-
-
Save sputnick-dev/0c788e4307bea1167246d690ae14bc72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ printf '%s\n' a 2 z s 0.1 1.1 | sort -n | |
0.1 | |
a | |
s | |
z | |
1.1 | |
$ printf '%s\n' a 2 z s 0.1 1.1 | sort -V | |
0.1 | |
1.1 | |
2 | |
a | |
s | |
z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Carrying on from StackOverflow, I get different results from you - that
sort -n
seems badly broken!