LPI
101-500 · Question #407
101-500 Question #407: Real Exam Question with Answer & Explanation
The correct answer is A. root*can?do-this.{txt,odt} B. r[oOoO]t-can-do*.txt C. {root,user,admin}-can-??-this.txt. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Shells and Shell Scripting
Question
Which of the following examples for Bash file globbing matches a file named root-can-do-this.txt when used in the directory holding that file? (Choose three correct answers.)
Options
- Aroot*can?do-this.{txt,odt}
- Br[oOoO]t-can-do*.txt
- C{root,user,admin}-can-??-this.txt
- Drootcando??this.txt
- Eroot***{can,may}-do-this.[tT][xX][tT]
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#bash globbing#wildcard patterns#file matching#shell expansion
Community Discussion
No community discussion yet for this question.