grep: This is a command-line utility for searching plain-text data sets for lines that match a regular expression. -v: This option is used to invert the match, i.e., it selects all lines that do not contain the specified pattern. "word": This is the string pattern that we want to...
答案 grep -v是你的朋友: grep--help |grepinvert -v, - inverse-match 选择不匹配的行 另请查看相关的-L(-l的补码)。 -L, - files-without-match 仅打印不包含匹配项的 FILE 名称 您还可以将awk用于这些目的,因为它允许您以更清晰的方式执行更复杂的检查: ...