给定一个文件sample:
hello world ahello here hello_there
grep“ hello”的法线返回:
$ grep hello sample hello world ahello here hello_there
使用-w允许选择包含构成整个单词的匹配项的行:
$ grep -w hello sample hello world