Which of the following examples for Bash file globbing matches a file named root-can-dothis.txt when used in the directory holding that file? (Choose three correct answers.)
A.
root*can?do-this.{txt,odt}
B.
r[oOoO]t-can-do*.txt
C.
{root,user,admin}-can-??-this.txt
D.
root*can*do??this.txt
E.
root***{can,may}-do-this.[tT][xX][tT]
B is not a valid answer. Instead E is valid.
File name should be: root-can-do-this.txt (Author forgot last ‘-‘)
Then:
B is wrong – [oOoO] matches only 1 ‘o’
D is wrong – ?? doesn’t match the single ‘-‘
Ergo A, C, E are correct