Archive for April 16th, 2009
!diff — Finding lines that are the same between 2 files
Someone asked if there was a way for diff to only show lines that are the same between 2 files. A little digging in the manpage for gnu diff got me this nice result:
diff --unchanged-line-format=%L --old-line-format= --new-line-format= FILE1 FILE2
This seems to work… but i’m open to other suggestions


