diff --git a/cheat/cheatsheets/diff b/cheat/cheatsheets/diff index f9f2b3e..d8266e5 100644 --- a/cheat/cheatsheets/diff +++ b/cheat/cheatsheets/diff @@ -21,3 +21,6 @@ diff -s version1 version2 # To diff the output of two commands or scripts: diff <(command1) <(command2) + +# Generate a patch file from two files +diff -Naur version1 version2 > version.patch \ No newline at end of file