1、统计两个文本文件的相同行
grep -Ff file1 file2
2、统计file2中有,file1中没有的行
grep -vFf file2 file1
转载于:https://blog.51cto.com/hxl2009/677226
1、统计两个文本文件的相同行
grep -Ff file1 file2
2、统计file2中有,file1中没有的行
grep -vFf file2 file1
转载于:https://blog.51cto.com/hxl2009/677226