uniq —— 过滤重复项
uniq
实用程序可用于过滤文件或标准输入提供的文本中的相邻重复行。
注意: 不应使用
sort | uniq
,而应使用sort -u
。
详细信息,请参见man uniq
和 IEEE Std 1003.1-2017-uniq。
uniq
实用程序可用于过滤文件或标准输入提供的文本中的相邻重复行。
sort | uniq
,而应使用sort -u
。
详细信息,请参见man uniq
和 IEEE Std 1003.1-2017-uniq。