What is the difference between Copied context output format and Unified context output format when taking a diff?
diff -NBur dir1/ dir2/
diff -NBcr dir1/ dir2/
diff()linux
What is the difference between Copied context output format and Unified context output format when taking a diff?
diff -NBur dir1/ dir2/
diff -NBcr dir1/ dir2/
Best Answer
Apparently you've misread the manual. The
-u
flag is for unified context, not Unicode and-c
is for copied context, not 'Context format':-c -C NUM --context[=NUM] Output NUM (default 3) lines of copied context.
-u -U NUM --unified[=NUM] Output NUM (default 3) lines of unified context.
The most straightforward way to find out what is the difference, is to try it out:
Do you get what's the difference?