MPE/iX Shell and Utilities Reference Manual, Vol 1

mailx(1) MPE/iX Shell and Utilities mailx(1)
˜< filename
is the same as the ˜r command.
˜< !command
executes the given shell command and adds the standard output of that command at
this point in the message. For example, your message might contain
My program is giving me this odd output:
˜< !prog
What do you think is causing it?
˜| command
pipes the current message through the specified shell command. If the command ter-
minates with a successful exit status, the output of the command replaces the text of
the current message. For example,
˜|fmt
fills and justifies the lines of your message and replaces the message with the format-
ted message. ˜| uses the shell given by the
SHELL
environment variable to run com-
mand.
˜! command
executes the given shell command. For example,
˜! lc
can be used to obtain a list of files in the current directory. The shell that is invoked
to execute the command is given by the
SHELL
environment variable; see the
ENVIRONMENT VARIABLES section. If the
bang
variable is set, mailx replaces
each unescaped exclamation mark (!)incommand with the command executed by
the previous ! command or ˜! command escape.
˜. marks the end of input in a mail message.
˜: mail_command
executes the given command mode mail_command. This is only valid when you
entered mailx in command mode, then went into input mode to compose a message.
˜_ mail_command
is the same as the ˜: command.
˜? displays a summary of the input mode commands.
1-318 Commands and Utilities