我有 2 个文件:
- 文件 1
字符串列表:
ben
john
eric
- 文件2
几行:
ben when to school
my mother went out
the dog is big
john has FB
eric is nice guy
导出文件:
my mother went out
the dog is big
我想使用grep -v
和删除列表中包含字符串的行。
这是想法,但命令错误:
grep -v `cat file2` file1 > out
谢谢
阿萨夫