Sort & uniq in Linux shell

后端 未结 6 1476
没有蜡笔的小新
没有蜡笔的小新 2021-01-30 10:41

What is the difference between the following to commands?

sort -u FILE

sort FILE | uniq
6条回答
  •  醉梦人生
    2021-01-30 11:14

    I have worked on some servers where sort don't support '-u' option. there we have to use

    sort xyz | uniq
    

提交回复
热议问题