YUANya

导航

 
#!/bin/sh

les species_latinName_abbr.txt|grep -E 'Aptenodytes|Gavia|Phoenicopterus|Chlamydotis|Phaethon' | awk '{printf $1","}'

##APTFO,CHLUN,GAVST,PHALE,PHORU

cat a.txt | awk '{a[i]=1;END{getline i < "b.txt";b[i]=1;if(!(i in a)){if(i in b){print $0}}}}'

##
posted on 2019-06-19 17:27  YUANya  阅读(196)  评论(0编辑  收藏  举报