$OPTIND  –  Index of Last Argument Processed by getopts

$OPTIND contains the index of the last option argument processed by the getopts builtin.

Default value: 1.

BashSupport Pro is a Bash IDE with support for $OPTINDtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal