I have Two files as like this
cat.01 dog.01
cat.03 dog.04
cat.05 dog0.2
Another file
cat.01
cat.05
Then I want to print the common based on the first column
cat.01 dog.01
cat.05 dog0.2
I tried with intersection but it only prints the first column. I tried with merge also but it is taking too much time to respond