Linux sort command


设定分隔符,依据第二列字段排序

[root@denifears shell]# cat 1.txt 
abc,123
abc,4
abc,33
ddd,895
klj,356
[root@denifears shell]# sort -t , -k 2 -n 1.txt 
abc,4
abc,33
abc,123
klj,356
ddd,895