A user jack, using a korn shell, requests a directory listing as follows:
jack@solaris:/export/home/jack $ 1s
file filea Filea fileb Fileb filec Filec
Which two statements are correct?
A.
The pattern [?i]*a will expand to filea Filea.
B.
The pattern [fF]*a? will expand to [fF] *a?.
C.
The pattern [gfe] * will expand to file filea fileb filec.
D.
The pattern [g-e] * will expand to file filea fileb filec.
E.
The pattern [fF] [a-zA-z] i*e will expand to file.
Explanation:
A: starting with one single character, second character must be letter i, any
characters, ending with letter a.
C: starting with letter e, f, or g, followed by anything.
oye oye a galat hai oye
A and C
B,C
A,D