shell while 双循环对比查找共有字段
#!/bin/bash
#查找两个文件中的共有字段
while read line
do
while read line2
do
if [[ $line -eq $line2 ]]
then
echo $line2
fi
done < aaa.txt
done < bbb.txt
相关推荐
laisean 2020-11-11
zhangjie 2020-11-11
大牛牛 2020-10-30
firefaith 2020-10-30
liguojia 2020-10-20
wangzhaotongalex 2020-10-20
CARBON 2020-10-20
JohnYork 2020-10-16
xiaonamylove 2020-10-16
Julyth 2020-10-16