for item in `cat 2.txt` do grep $item 1.txt >/tmp/test.txt if [ $? -ne 0 ];then echo "$item" fi done
for item in `cat 2.txt` do grep $item 1.txt >/tmp/test.txt if [ $? -ne 0 ];then echo "$item" fi done
转载于:https://www.cnblogs.com/uglyliu/p/10796937.html