Ren*_*aud 2 printing grep
我正在使用grep从两个不同文件中的文件中找到匹配的行.它找到匹配的文件从蛮好File1成File2和File3,但是从目前有不止一个文件,它打印在其被旁边的行中找到的文件名.
File1
File2
File3
grep -w -f File1 File2 File3
输出:
File2: pattern
File3: pattern
有没有选项可以避免打印File2:和File3:?
File2:
File3:
Tri*_*200 5
grep --no-filename -w -f File1 File2 File3
归档时间:
12 年,10 月 前
查看次数:
1750 次
最近记录: