Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一份文件,上面写着春季银行
现在我想检查这些单词是否存在于多个文档中,比如说 10 个文档。输入和文档列表应该是用户定义的。谁能建议我如何进行?
怎么样grep?
grep
grep -REic 'spring|season|bank' file1.txt file2.txt ...
查看man grep更多选项。
man grep