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.

paste<br />

Options<br />

Examples<br />

Localization<br />

–d list Specifies a list of characters to be used one at a time instead of the tab<br />

character to replace the newline at the end of input lines. In a doublebyte<br />

locale, list can contain doublebyte characters. paste uses list circularly;<br />

when it exhausts the characters in list, it returns to the first character in the<br />

list. If you also specify the –s option, paste returns to the first character of<br />

list after processing each file. Otherwise, it returns to the first character after<br />

each line of output.<br />

list can contain any of the following standard C escapes such as \n, \t, \r,<br />

\b, \\, and \0, where \0 indicates that no separator is to be used.<br />

–s Concatenates all lines from each input file together on the single output<br />

line. If the –s option is not specified and the end of the file is detected on<br />

any (but not all) of the input files, paste behaves as though empty lines<br />

have been read from those files.<br />

The command:<br />

ls | paste –s –d’\t\t\n’<br />

displays the output of ls in three tab separated columns.<br />

If file A contains:<br />

a<br />

b<br />

c<br />

and file X contains:<br />

x<br />

y<br />

z<br />

then the command:<br />

paste A X<br />

produces:<br />

a x<br />

b y<br />

c z<br />

and the command:<br />

paste –s A X<br />

produces:<br />

a b c<br />

x y z<br />

paste uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v LC_SYNTAX<br />

468 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!