HPlogo Command Interpreter Access and Variables Programmer's Guide: Series HP 3000 Computer Systems > Chapter 8 Command Input/Output Redirection (CIOR)

Escaping Redirection

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

If, for any reason, you want to use the IO redirection indicators <,> or >> without having them function as such, you can precede them with the ! sign.

For example, suppose you wanted to construct a command file to explain how to use I/O redirection which contained the following echo command:

   echo To redirect $STDLIST use the construct, >filename.

This would cause filename to be a newly-created, temporary file containing the string preceding it.

To prevent this from happening, insert ! before >filename, as follows:

   echo To redirect $STDLIST use the construct !>filename

The resulting display would be:

   To redirect $STDLIST use the construct >filename

The ! can be used in the same way to escape the other redirection indicators (< and >>) also.

Feedback to webmaster