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.

egrep — Search a file for a specified pattern<br />

Format<br />

Description<br />

egrep [–bcilnqsvx] [–e pattern] ... [–f patternfile] ... [pattern] [file ...]<br />

Note: The egrep utility is fully supported for compatibility with older <strong>UNIX</strong> systems.<br />

However, it is recommended that grep –e be used instead because it may<br />

provide greater functionality and is considered the standard for portable<br />

<strong>UNIX</strong> applications as defined by P<strong>OS</strong>IX.2 IEEE standard 1003.2-1992.<br />

See grep.<br />

env — Display or set environment variables for a process<br />

Format<br />

Description<br />

Options<br />

Examples<br />

Localization<br />

env [–i] [variable=value ...] [command argument ...]<br />

env [–] [variable=value ...] [command argument ...]<br />

If you enter env with no arguments, it displays the environment variable that it<br />

received from its parent (presumably the shell).<br />

Arguments of the form variable=value let you add new environment variables or<br />

change the value of existing environment variables.<br />

If you specify command, env calls command with the arguments specified with the<br />

argument argument that appear on the command line, passing the accumulated<br />

environment variable to this command. The command is run directly as a program<br />

found in the search PATH, and is not interpreted by a shell.<br />

In a doublebyte locale, environment variable values may contain doublebyte<br />

characters. The equal sign (=) must be singlebyte.<br />

env supports the following two options, both of which have the same effect.<br />

–i Specifies that the environment variable inherited by env not be used.<br />

– Specifies that the environment variable inherited by env not be used.<br />

Compare the output of the following two examples:<br />

env foo=bar env<br />

env –i foo=bar env<br />

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

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

egrep<br />

Chapter 2. Shell command descriptions 257

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

Saved successfully!

Ooh no, something went wrong!