📜  bash 只打印重复的行 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:06.006000             🧑  作者: Mango

代码示例1
# Basic syntax:
sort input_file | uniq -d
# Sort the file first because uniq requires a sorted file to work

# Note, uniq -d only prints one instance of lines that have duplicates
#    Use, uniq -c to count the number of duplicates in the file