Any visual diff in Linux console? [closed]
I’m using vimdiff. Or there is also sdiff.
I’m using vimdiff. Or there is also sdiff.
I just had this same problem – lots of advice on how to half do it. Well, here is what I did to get both the patching and unpatching to work: To Create the Patch File: Put copies of both directories in say /tmp, so we can create the patch file, or if brave, get … Read more
diff has some options that can be useful to you: -E, –ignore-tab-expansion ignore changes due to tab expansion -Z, –ignore-trailing-space ignore white space at line end -b, –ignore-space-change ignore changes in the amount of white space -w, –ignore-all-space ignore all white space -B, –ignore-blank-lines ignore changes whose lines are all blank So diff -w old … Read more
Use the –strip-trailing-cr option: diff –strip-trailing-cr file1 file2 The option causes diff to strip the trailing carriage return character before comparing the files.
:w !diff % –