标签:ubuntu test 根据 文件的 linux环境 inux txt nihao cat
momo@ubuntu:~/user/txt$ cat test.txt
1 chen nihao
2 chen hello
3 li nimenhao
4 he dajiahao
5 li nimenhao
momo@ubuntu:~/user/txt$ sort -k2,2 -u test.txt
1 chen nihao
4 he dajiahao
3 li nimenhao
momo@ubuntu:~/user/txt$ cat test1.txt
1 chen nihao
2 chen hello
3 li nimenhao
4 he dajiahao
5 li nimenhao
6 she nimenhao
momo@ubuntu:~/user/txt$ sort -k3,3 -u test1.txt
4 he dajiahao
2 chen hello
1 chen nihao
3 li nimenhao
标签:ubuntu test 根据 文件的 linux环境 inux txt nihao cat
原文地址:http://www.cnblogs.com/chenanan/p/7509143.html