Escaping Redirection [ Command Interpreter Access and Variables Programmer's Guide ] MPE/iX 5.0 Documentation
Command Interpreter Access and Variables Programmer's Guide
Escaping Redirection
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.
MPE/iX 5.0 Documentation