I execute following command
bash -c \'comm -12 <(sort vms1.txt) <(sort vms2.txt)\'
and it gives following output
sort: c