在 Linux 中,可以使用 grep 命令来查找单词。
语法如下:
grep "单词" 文件名
示例:
grep "hello" file.txt
这将在 file.txt 文件中查找所有包含 "hello" 的行,并将它们打印出来。
查看详情