
Arquivo 1:
1234567890123456,00,00,000
1111111111111111,11,11,1111
Arquivo 2
1111111111111111,11,11,1111
9999999999999999,99,99,999
Então, eu quero saber o que no arquivo 1 está no arquivo 2, que é
Saída:
1111111111111111,11,11,1111
Responder1
Usando o seguinte comando, consegui resolver meu problema
grep -Fxf file1 file2