quinta-feira, 19 de maio de 2011

Shell: Output the common lines of two text files

One way:
$ diff --side-by-side file_a file_b | grep -n -v "[|<>]"

Or using the command 'comm' (man comm for more details):
$ comm -12 file_a file_b

Nenhum comentário:

Postar um comentário

Drunk Penguins

Drunk Penguins
Drunk Penguins