Search exams, classes and guides
Search...
English
Sign in
Sign in
Home
Practice
Discover
Performance
More
CompTIA Linux+ XK0-006
Automation, Orchestration, and Scripting
Card 66 of 113
66 / 113
Which Bash array holds the matched text and capture groups after a successful [[ $foo =~ regex ]] test?
Front
Which Bash array holds the matched text and capture groups after a successful [[ $foo =~ regex ]] test?
Back
BASH_REMATCH holds the full match at index 0 and each parenthesized group at the following indexes. PIPESTATUS stores exit codes from the last pipeline, not regex matches.
Show the back
Press the card to see the back
Study this deck