在hello.cpp文件中搜索num单词(命令行命令 grep –help 查看帮助) grep -i 'num' hello.cpp 或 cat hello.cpp | grep -i 'num' 示例: