16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Exit Values<br />

Messages<br />

Portability<br />

v NLSPATH<br />

Related Information<br />

cut<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v Missing input files<br />

v Too many files specified<br />

v Inability to open a file<br />

2 Unknown command-line option<br />

Possible error messages include:<br />

Too many files at name<br />

You specified more files than paste can handle. The name given in the<br />

error message is the name of the first file that paste could not open. The<br />

number of files that paste can open depends on the number of files that<br />

other processes have open.<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> <strong>System</strong> V.<br />

patch — Change a file using diff output<br />

Format<br />

Description<br />

Options<br />

patch [–bceflNnRsv] [–B prefix] [–D symbol] [–d dir] [–F n]<br />

[–i patchfile] [–o outfile] [–p n] [–r rejectfile] [file]<br />

paste<br />

patch reads a patchfile that contains output from diff describing changes from an<br />

old text file to a new text file. patch then applies those changes to another text file.<br />

Typically, you use patch if you are keeping parallel versions of a file. When you<br />

make a set of changes to one file, you can use patch to incorporate those same<br />

changes in other versions of the file.<br />

–B prefix<br />

Saves a copy of the original file in a backup file. The backup filename is the<br />

name of the original file preceded by the string prefix. If there is already a<br />

file with this name, patch overwrites it. When applying more than one patch<br />

to the same file, patch copies only the original for the first patch. When you<br />

also specify –o outfile, patch does not create prefixfile, but if outfile already<br />

exists, it creates prefixoutfile.<br />

–b Saves a copy of the original file in a backup file. The backup filename is the<br />

name of the original file plus the suffix orig. If there is already a file with<br />

that name, patch overwrites it. When applying more than one patch to the<br />

Chapter 2. Shell command descriptions 469

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!