9

Sort command question

view full story
linux-howto

http://www.unix.com – I have a question about what the sort command is doing. Here is some sample data: Code: 348201310013RVE        2 600201310013GFJ        70 3302013020101NS        40 600201309013GFJ        70 The sort command that is running is as follows: Code: sort -k 1,3 -k 12,4 input.txt > output.txt I think it is sorting it by the first 3 bytes, and then column 12 for 4 bytes?? Is that correct? I'm a little confused on the syntax. Thanks for all help. (HowTos)