I just got aware that sort
seems to ignore dollar characters at the beginning of the line.
Why is that?
Example:
user@host:~$ cat 5.txt
$_a
_b
$_c
user@host:~$ sort 5.txt
$_a
_b
$_c
I have Debian 9.2 Stretch.
I just got aware that sort
seems to ignore dollar characters at the beginning of the line.
Why is that?
Example:
user@host:~$ cat 5.txt
$_a
_b
$_c
user@host:~$ sort 5.txt
$_a
_b
$_c
I have Debian 9.2 Stretch.
I found an answer here:
Why does this sort ignore the +/- character prefix?
sort
works as expected with
LC_COLLATE=C sort 5.txt