小编doe*_*247的帖子

如何使用 grep 查找任何单词出现 3 次的行?

我想找到包含任何单词的行三遍。为此,我认为最好使用该grep命令。

这是我的尝试。

grep '\(.*\)\{3\}' myfile.txt
Run Code Online (Sandbox Code Playgroud)

grep regular-expression

5
推荐指数
2
解决办法
1027
查看次数

标签 统计

grep ×1

regular-expression ×1