假设有文件
foo bar cat dog foo foo cat bar bar foo foo foo
我们如何 grep 出现特定次数的行,foo例如,如果数字为1,则仅应打印示例文件中的第一行?
foo
grep text-processing
grep ×1
text-processing ×1