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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

tcsh<br />

Input or output<br />

The standard input and standard output of a command may be redirected with the<br />

following syntax:<br />

Table 31. Standard Input/Output Syntax for tcsh Shell<br />

Syntax Description<br />

< name Open file name (which is first variable, command and<br />

filename expanded) as the standard input.<br />

name<br />

>! name<br />

>& name<br />

>&! name<br />

>> name<br />

>>& name<br />

>>! name<br />

>>&! name<br />

The file name is used as standard output. If the file does<br />

not exist then it is created; if the file exists, its is<br />

overwritten and, therefore, the previous contents are lost.<br />

If the shell variable noclobber is set, then the file must not<br />

exist or be a character special file (for example, a terminal<br />

or /dev/null) or an error results. This helps prevent<br />

accidental destruction of files. In this case the ! forms can<br />

be used to suppress this check.<br />

The forms involving & (ampersand) route the diagnostic<br />

output into the specified file as well as the standard output.<br />

name is expanded in the same way as < input filenames<br />

are.<br />

Like >, but appends output to the end of name. If the shell<br />

variable noclobber is set, then it is an error for the file not<br />

to exist, unless one of the ! forms is given.<br />

A command receives the environment in which the shell was invoked as modified<br />

by the input-output parameters and the presence of the command in a pipeline.<br />

Thus, unlike some previous shells, commands run from a file of shell commands<br />

have no access to the text of the commands by default; instead they receive the<br />

original standard input of the shell. The

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

Saved successfully!

Ooh no, something went wrong!