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.

grep<br />

Portability<br />

Related Information<br />

ed, find<br />

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

Only the grep command is part of the P<strong>OS</strong>IX and X/Open standards. The egrep<br />

and fgrep commands are extensions. The –b option is an extension of the P<strong>OS</strong>IX<br />

standard.<br />

hash — Create a tracked alias<br />

Format<br />

Description<br />

Option<br />

Usage Note<br />

Localization<br />

Exit Values<br />

See Appendix C for more information about regexp.<br />

hash [name ...]<br />

hash -r<br />

hash creates one or more tracked aliases. Each name on the command line<br />

becomes an alias that is resolved to its full pathname; thus the shell avoids<br />

searching the PATH directories for the command whenever you issue it. A tracked<br />

alias is assigned its full pathname the first time that the alias is used. It is<br />

reassigned a pathname the first time that it is used after the variable PATH is<br />

changed or the shell command cd is used.<br />

hash is a built-in alias defined with<br />

alias hash=’alias -t’<br />

If you specify hash without any arguments on the command line, hash displays the<br />

current list of tracked aliases.<br />

–r Removes all current tracked aliases.<br />

hash is a built-in shell command.<br />

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

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure because of an incorrect command-line option<br />

306 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!