Hi,
I have two linux machines, on which unix sort seems to behave differently. I believe I've narrowed it down to the treatment of the underscore character.
If I run sort tmp
, where tmp contains the following two lines:
aa_d_hh
aa_dh_ey
one machine outputs
aa_d_hh
aa_dh_ey
(i.e. '_' precedes 'h') while the other outputs
aa_dh_ey
aa_d_hh
(i.e. 'h' precedes '_'). I need these machines to behave together (as I use sort -m later, to merge very large files).
Is there any way I can force sort to behave in one way or the other?
Thanks.