Check if same row exist in two files

check if same row exist in two files 

while read i;do egrep ^$i$ file2 && echo $i >> exist.out || echo $i >> non_exist.out; done < file1

Apt error Could not get lock /var/lib/apt/lists/lock

  sudo fuser -vik -TERM /var/lib/apt/lists/lock  

Mais vistos