Lets say we have two files as follows
Karthick is not so intelligent He is not lazy
karthick is not so bad either He is hard worker
so in the two files above, the commone words are "karthick is not so" & "He is" in each of the lines. Is there any way to print all such common lines with either grep command or some linux command?
preguntado el 08 de enero de 11 a las 17:01
Quieres usar el dwdiff utility :).
Ejemplo de uso:
dwdiff "File A.txt" "File B.txt"
It might take a little while to get used to it's output, but check http://linux.die.net/man/1/dwdiff para más detalles sobre eso.
There are also several visual diff applications out there, but I prefer using it on the command line.