Hint: to make life easy, just use diff -u to produce unified format with left margin +/- symbols
diff -u
+
-
may not be a good move for large files/many changes, in which case the terser standard format is explained below for reference
by convention (Wiki), the first file argument should be the original, and the second should be the new version
first file argument is the one listed above the --- fold, the second below it
---
in this context, an addition/insertion is represented with a < and a removal/deletion with >
<
>
A diff call will not necessarily give the same numbers of lines above and below the fold with the file arguments passed in a different order!
diff
There was an error while loading. Please reload this page.