chirpyform
Programmer
Is there an option with the command sort so that the order on input rests. Ex I sort a file on the first 8 chars with
sort -k 1.1,1.8 file
the problem is that if there are several lines that are the same for the first 8 chars then the sort doesn't keep the order, it will sort the rest of the line on ASCII.
With Linux there is the option -s (stable) which works exactly as I would like.
Does this command exist with UNIX?
Thanks
Chris
sort -k 1.1,1.8 file
the problem is that if there are several lines that are the same for the first 8 chars then the sort doesn't keep the order, it will sort the rest of the line on ASCII.
With Linux there is the option -s (stable) which works exactly as I would like.
Does this command exist with UNIX?
Thanks
Chris