The diff and patch commands

PHOTO EMBED

Mon Mar 29 2021 09:38:01 GMT+0000 (Coordinated Universal Time)

Saved by @FlorianC

# create diff file
diff old_file new_file > changes.diff
diff -u old_file new_file > changes.diff # with additional context

# apply diff file
patch file_to_patch < changes.diff
content_copyCOPY