




Command:   patch - patches up a file from the original and a diff
Syntax:    patch [-NRbcdeflnop] [-Fn] [-D label] [file [difflist]]
Flags:     -D  Mark changes  with    #ifdef...#endif    next  arg  gives
               label
           -F  Sets the maximum fuzz factor to n
           -N  Ignore patches that are reversed or already applied
           -R  Reverse the patches
           -b  Next argument is backup extension,  instead  of  using  a
               tilde ( )
           -c  Interpret the patch file as a context diff
           -d  Cd to the next arg (assumed a dir) before doing anything
           -e  Interpret the patch file as an ed script
           -f  Forces patch to do its work without asking any questions
           -l  Do matching loosely (e.g., all white space is equivalent)
           -n  Interpret the patch file as a normal diff
           -o  Next argument is the output file name
           -p  Sets the pathname strip count
Examples:  patch file difflist      # Fix up file
           patch <difflist          # Patch multiple files

     Patch takes an original file and a diff listing and  recreates  the
new  file.   It  is functionally similar to fix, but much more powerful.
Not only can it handle normal diffs, but also context diffs produced  by
cdiff.  In addition, it works even when the file being patched has other
changes to it.  It deduces the type of difflist itself (unless given -c,
-e,  or  -n).   The normal usage is given in the example above.  In this
case patch will modify file to incorporate all the patches. The original
file will be saved to a file ending in a tilde ( ).

     If no input file is given, patch reads stdin which may contain  the
concatenation  of multiple diff listings.  In this way, all the files in
a directory may be updated at once.  See Chap. 9 for more information.


























                                                                        

