gpatch

Apply unified diff patches to original files

brewmacoslinux
Try with needOr install directly
Source

About

Apply a diff file to an original

Commands

gpatch

Examples

Apply a patch file to a source file$ gpatch < changes.patch
Apply a patch to a specific file with explicit path$ gpatch original.txt < changes.patch
Apply a patch with verbose output and create backup$ gpatch -b original.txt < changes.patch