From 2a6d34de3594db5b914b476e13259d3591275584 Mon Sep 17 00:00:00 2001 From: Klaatu Date: Fri, 2 Sep 2016 09:44:19 +1200 Subject: [PATCH] diff addition --- cheat/cheatsheets/diff | 3 +++ 1 file changed, 3 insertions(+) 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