Hello,
please tell me why second sort ignores -k4,4 sort?
# sort -t"," -k4,4 test
4,c,d,a,a
6,a,d,b,d
7,a,d,b,d
8,a,d,b,d
9,a,d,b,d
1,d,c,c,a
5,a,b,c,d
2,b,c,d,a
3,a,b,d,d
# sort -t"," -k4,4 -nk1,1 test
1,d,c,c,a
2,b,c,d,a
3,a,b,d,d
4,c,d,a,a
5,a,b,c,d
6,a,d,b,d
7,a,d,b,d
8,a,d,b,d
9,a,d,b,d
kind regards,
please tell me why second sort ignores -k4,4 sort?
# sort -t"," -k4,4 test
4,c,d,a,a
6,a,d,b,d
7,a,d,b,d
8,a,d,b,d
9,a,d,b,d
1,d,c,c,a
5,a,b,c,d
2,b,c,d,a
3,a,b,d,d
# sort -t"," -k4,4 -nk1,1 test
1,d,c,c,a
2,b,c,d,a
3,a,b,d,d
4,c,d,a,a
5,a,b,c,d
6,a,d,b,d
7,a,d,b,d
8,a,d,b,d
9,a,d,b,d
kind regards,