MPE/iX Shell and Utilities Reference Manual, Vol 1

ed(1) MPE/iX Shell and Utilities ed(1)
1,$W [file]
is similar to the w command except that this command appends data to the given file
if the file already exists.
1,$w [file]
writes the addressed lines of the buffer to the named file. This does not change the
current line number. If you do not provide file, ed uses the remembered file name; if
there is no remembered file name, file becomes the remembered name. If the output
file does not exist, ed creates it. ed displays the number of characters written unless
you had specified the –s option.
X prompts you to enter an encryption key. All subsequent e, r, and w commands use
this key to decrypt/encrypt text read from or written to files. To turn off encryption,
issue an X command and press
RETURN in response to the prompt for an encryption
key.
!command
runs command as if you typed it to your chosen command interpreter. If command
contains the % character, ed replaces it with the current remembered file name. If
you want a command to contain a literal %, put a backslash (\) in front of the charac-
ter. As a special case, typing !! re-issues the previous command.
$= displays the line number of the addressed line. This does not change the current line
number.
.+1,.+1 if you supply zero, one, or two addresses without an explicit command, ed displays
the addressed lines in the mode of the last display command: p, l,orn. This sets the
current line number to the last line displayed.
ENVIRONMENT VARIABLES
ed uses the following environment variables:
COLUMNS
contains the terminal width in columns. ed folds lines at that point. If it is not set,
ed uses the appropriate value from the
TERMINFO
database or if that is not avail-
able, it uses a default of 80.
HOME
contains the path name of your home directory.
SHELL
contains the full path name of the current shell.
TMPDIR
is the path name of the directory being used for temporary files. If it is not set, MPE/iX
Shell and Utilities uses /tmp.
Commands and Utilities 1-201