diffutils: Invoking patch

1 
1 15 Invoking 'patch'
1 *******************
1 
1 Normally 'patch' is invoked like this:
1 
1      patch <PATCHFILE
1 
1    The full format for invoking 'patch' is:
1 
1      patch OPTIONS... [ORIGFILE [PATCHFILE]]
1 
1    You can also specify where to read the patch from with the '-i
1 PATCHFILE' or '--input=PATCHFILE' option.  If you do not specify
1 PATCHFILE, or if PATCHFILE is '-', 'patch' reads the patch (that is, the
1 'diff' output) from the standard input.
1 
1    If you do not specify an input file on the command line, 'patch'
1 tries to intuit from the "leading text" (any text in the patch that
11 comes before the 'diff' output) which file to edit.  ⇒Multiple
 Patches.
1 
1    By default, 'patch' replaces the original input file with the patched
1 version, possibly after renaming the original file into a backup file
1 (⇒Backup Names, for a description of how 'patch' names backup
1 files).  You can also specify where to put the output with the '-o FILE'
1 or '--output=FILE' option; however, do not use this option if FILE is
1 one of the input files.
1 

Menu