compare two files and get the output for the same lines
- by garconcn
How can I get the following output using linux command by comparing two text files? Thanks.
file1:
site110
site120
file2:
domain1.com - site110
domain2.com - site111
domain3.com - site112
domain4.com - site113
domain5.com - site120
output:
domain1.com - site110
domain5.com - site120