# 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