shell判断新字符串列表是否在老字符串列表中

for sn in `cat 12.30-new`;do if ! [[ `cat 12.30-old` =~ $sn ]];then echo $sn; fi; done
原文地址:https://www.cnblogs.com/zhangmingda/p/14212096.html