I have two files with slight differences. A normal diff will show me the differences between the files. With -c or -u I can add an amount of context to each hunk. What options can I pass to diff to see every unchanged line alongside the changes, and get the diff as a single, large hunk?
I have two files with slight differences. A normal diff will show me the
Share
Use the ‘-y’ option for full side by side output
diff -y file1 file2
Will give you output something like