PrepAway - Latest Free Exam Questions & Answers

Which of the following examples for Bash file globbing …

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.)

PrepAway - Latest Free Exam Questions & 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]

2 Comments on “Which of the following examples for Bash file globbing …

  1. jan says:

    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




    6



    0

Leave a Reply