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.

esac<br />

done<br />

shift $OPTIND-1<br />

# perform actual paste command<br />

$paste -d "$seplist" "$@"<br />

Environment Variables<br />

getopts uses the following environment variables:<br />

OPTARG<br />

Stores the value of the option argument found by getopts.<br />

OPTIND<br />

Contains the index of the next argument to be processed.<br />

Localization<br />

Usage Note<br />

Exit Values<br />

Portability<br />

Related Information<br />

sh<br />

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

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

See Appendix F for more information.<br />

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

0 getopts found a script command line with the form of an option. This<br />

happens whether or not it recognizes the option.<br />

1 getopts reached the end of the options, or an error occurred.<br />

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

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

On <strong>UNIX</strong> systems, getopts is built in both the KornShell and Bourne shell.<br />

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

Format<br />

Description<br />

grep [–bcEFilnqsvx] [–e pattern] ... [–f patternfile] ... [pattern] [file ...]<br />

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

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

getopts<br />

fgrep searches files for one or more pattern arguments. It does not use regular<br />

expressions; instead, it directs string comparisons to find matching lines of text in<br />

the input.<br />

Chapter 2. Shell command descriptions 303

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

Saved successfully!

Ooh no, something went wrong!