happy sad calm palm
palm dream calm
I want to compare the two files and display only those line that are common in both the files, but I want to maintain the order of File 2. My output should be:
I know I can use comm after sorting the files but I want to maintain the order. Is there any way to do this?