在文件中查找字符串(不区分大小写):grep -i "the" demo_file 。
输出成功匹配的行,以及该行之后的三行:grep -A 3 -i "example" demo_text 。
在一个文件夹中递归查询包含指定字符串的文件:grep -r "ramesh" * 。