16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

!command<br />

Runs command as if you typed it to your chosen command interpreter. If<br />

command contains the % character, ed replaces it with the current<br />

remembered filename. If you want a subcommand to contain a literal %, put<br />

a backslash (\) in front of the character. As a special case, typing !! reruns<br />

the previous command.<br />

$= Displays the line number of the addressed line. This does not change the<br />

current line.<br />

.= Displays the current line number.<br />

.+1.,.+1<br />

If you supply zero, one, or two addresses without an explicit subcommand,<br />

ed displays the addressed lines in the mode of the last print subcommand:<br />

p, l, or n. This sets the current line number to the last line displayed.<br />

Environment Variables<br />

ed uses the following environment variables:<br />

Files<br />

Localization<br />

COLUMNS<br />

Contains the terminal width in columns. ed folds lines at that point. If it is<br />

not set, ed uses the appropriate value from the terminfo database or if that<br />

is not available, it uses a default of 80.<br />

HOME Contains the pathname of your home directory.<br />

SHELL<br />

Contains the full pathname of the current shell.<br />

TMPDIR<br />

The pathname of the directory being used for temporary files. If it is not set,<br />

ed uses /tmp.<br />

_<strong>UNIX</strong>03<br />

For more information about the effect of _<strong>UNIX</strong>03 on this command, see<br />

Appendix N, “<strong>UNIX</strong> shell commands changed for <strong>UNIX</strong>03,” on page 943.<br />

ed uses the following files:<br />

/tmp/e*<br />

ed.hup<br />

This is the paging file. It holds a copy of the file being edited. You can<br />

change the directory for temporary files using the environment variable<br />

TMPDIR.<br />

When ed receives a hangup signal (or detects a terminal disconnect) and<br />

the current buffer has changed since the last write, ed will attempt to write<br />

the current buffer to ed.hup in the current directory. If this write fails, ed will<br />

attempt to write the current buffer to ed.hup in the $HOME directory.<br />

ed uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_COLLATE<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

ed<br />

Chapter 2. Shell command descriptions 253

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

Saved successfully!

Ooh no, something went wrong!