09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Programming Commands <strong>XENIX</strong> Programming<br />

csh (continued)<br />

Input/Output<br />

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

following syntax:<br />

&name<br />

>&!name<br />

The file name is used as standard output. If the file does not exist, then it is<br />

created; if the file exists, it is truncated, and its previous contents are lost.<br />

>>name<br />

>>&name<br />

>>!name<br />

>>&!name<br />

B-42<br />

If the variable noclobber is set, then the file must not already exist, or it must<br />

be a character special file (for example, a terminal or /dev/null); otherwise, an<br />

error results. This provision helps prevent accidental destruction of files. In<br />

this case the ! forms can be used to suppress a check. The forms involving &<br />

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

name is expanded in the same way as < input file names are.<br />

Uses the file name as standard output like > but places output at the end of the<br />

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

unless one of the ! forms is given. Otherwise similar to >.

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

Saved successfully!

Ooh no, something went wrong!