利用grep 筛选两个文件中共有的信息
N.txt
cat N.txt
Zm00001d003640_P001
Zm00001d003640_P002
Zm00001d003640_P003
Zm00001d010870_P001
Zm00001d011034_P001
C.txt
cat C.txt
Zm00001d003640_P001
Zm00001d003640_P002
Zm00001d003640_P003
Zm00001d010870_P001
Zm00001d011035_P001
N.txt 和C.txt 的交集
grep -F -f N.txt C.txt|sort -u
grep -F -f N.txt C.txt |sort -u
Zm00001d003640_P001
Zm00001d003640_P002
Zm00001d003640_P003
Zm00001d010870_P001
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!