我有一個值列表,可能在其中包含特殊字符,所有類型的字符。 [email protected]
Denver Occupy|another name|metadata
another name
metadata
我需要uniq實用linux,或sed,awk,辦法有作爲輸出: 唯一值從上述列表: [email protected]
Denver Occupy
another name
我想根據出場次數對輸入進行排序。但是,我不想刪除唯一或非唯一的行。舉例來說,如果我得到以下輸入: Not unique
This line is unique
Not unique
Also not unique
Also unique
Also not unique
Not unique
我會找一組流水線的命令,可輸出以下會: This line is unique
Also