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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

|<br />

Exit Value<br />

Portability<br />

Related Information<br />

sh, tcsh<br />

v LC_MESSAGES<br />

v LC_SYNTAX<br />

v NLSPATH<br />

See Appendix F for more information.<br />

echo always returns the following exit status value:<br />

0 Successful completion<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> <strong>System</strong> V.<br />

The P<strong>OS</strong>IX.2 standard does not include escape sequences, so a strictly conforming<br />

application cannot use them. printf is suggested as a replacement.<br />

ed — Use the ed line-oriented text editor<br />

Format<br />

Description<br />

Options<br />

Addresses<br />

ed [ –bs] [–p prompt] [file]<br />

ed is a line-oriented text editor that lets you manipulate text files interactively. ed<br />

reads the text of a file into memory and stores it in an area called a buffer. Various<br />

subcommands let you edit the text in the buffer. You can also write the contents of<br />

the buffer back out to the file, thereby overwriting the old contents of the file.<br />

–b Lets you edit larger files by restricting the amount of memory dedicated to<br />

paging. This frequently makes ed run slower.<br />

–p prompt<br />

Displays the given prompt string prompting you to input a subcommand. By<br />

default, ed does not usually prompt for subcommand input. See the<br />

description of the P subcommand for more on subcommand prompting (see<br />

“Subcommands” on page 249).<br />

–s Puts ed into a quiet mode, in which e, E, r, and w, subcommands do not<br />

display file size counts; the q and e subcommands do not check buffer<br />

modification; and ! is not displayed after calling the shell to run a<br />

subcommand. This mode is particularly useful when you invoke ed from<br />

within a shell script.<br />

If the optional file argument is present on the command line, ed reads the specified<br />

file into the editor by simulating an efile subcommand.<br />

You can prefix subcommands in ed with zero, one, or two addresses. These<br />

addresses let you refer to single lines or ranges of lines in the buffer. You do not<br />

echo<br />

Chapter 2. Shell command descriptions 247

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

Saved successfully!

Ooh no, something went wrong!