Merge pull request #59 from ncrocfer/diff_cheatsheets

Added diff cheatsheet
This commit is contained in:
Chris Lane 2013-09-01 10:08:08 -07:00
commit e7ca02f79b

20
cheatsheets/diff Normal file
View File

@ -0,0 +1,20 @@
# To view the differences between two files:
diff -u version1 version2
# To view the differences between two directories:
diff -ur folder1/ folder2/
# To ignore the white spaces:
diff -ub version1 version2
# To ignore the blank lines:
diff -uB version1 version2
# To ignore the differences between uppercase and lowercase:
diff -ui version1 version2
# To report whether the files differ:
diff -q version1 version2
# To report whether the files are identical:
diff -s version1 version2