#!/bin/bash
#查找两个文件中的共有字段
while read line
do
while read line2
do
if [[ $line -eq $line2 ]]
then
echo $line2
fi
done < aaa.txt
done < bbb.txt
#!/bin/bash
#查找两个文件中的共有字段
while read line
do
while read line2
do
if [[ $line -eq $line2 ]]
then
echo $line2
fi
done < aaa.txt
done < bbb.txt