Get only different lines from 2 files using diff (line by line comparison) by stephane August 8, 2013 diff –changed-group-format=“%>” –unchanged-group-format=“” file1 file2