patch — Apply Changes to Files

Synopsis

/usr/bin/patch [-blNR][-c | -e | -n][-d dir][-D define] 
  [-i patchfile][-o outfile][-p num][-r rejectfile][file] 

Description

Use the patch command to edit text files created by diff(1). patch reads a source (patch) file containing any of the three forms of difference (diff) listings produced by the diff(1) command (normal, context, or in the style of ed(1)) and applies those differences to a file. By default, patch reads from the standard input.

patch tries to determine the type of the diff listing unless overruled by a -c, -e, or -n option.

If the patch file contains more than one patch, patch tries to apply each patch as if it came from a separate patch file. (In this case, the name of the patch file ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.