文件中存在 grep 文件扩展名
grep file extension present inside file
我试图在文件中查找“.eml”,但我得到的是各种以 "eml" 结尾或以 "eml" 结尾的文本。
如何搜索文件中存在的特定“.eml”文本。
$ grep -rsin "*.eml" --exclude-dir=cache src/
我正在尝试的命令。我收到的示例文本是 "yuimenuitemlabel",但它是错误的。
我正在寻找与输出类似的 "text.eml" 或 "sendemail.eml" 之类的东西。
在您的模式中 .eml
将匹配任何字符 .
后跟 eml
。您必须转义点:
grep -rsin "\.eml" --exclude-dir=cache src/
我试图在文件中查找“.eml”,但我得到的是各种以 "eml" 结尾或以 "eml" 结尾的文本。
如何搜索文件中存在的特定“.eml”文本。
$ grep -rsin "*.eml" --exclude-dir=cache src/
我正在尝试的命令。我收到的示例文本是 "yuimenuitemlabel",但它是错误的。
我正在寻找与输出类似的 "text.eml" 或 "sendemail.eml" 之类的东西。
在您的模式中 .eml
将匹配任何字符 .
后跟 eml
。您必须转义点:
grep -rsin "\.eml" --exclude-dir=cache src/