I have a text file with two columns and I want to print only the strings that are present in both of them. For example:
column1 column2
stringA stringZ
stringP stringT
stringZ stringX
stringE stringR
stringT stringG
Expected output:
stringZ
stringT