LPI
101-400 · Question #284
You want to search the file myfile for all occurances of string containing at least five characters, where character number 2 and 5 are 'a' and character number 3 is NOT 'b'. Which command would you…
Sign in or unlock 101-400 to reveal the answer and full explanation for question #284. The question stem and answer options stay visible for context.
Question
You want to search the file myfile for all occurances of string containing at least five characters, where character number 2 and 5 are 'a' and character number 3 is NOT 'b'. Which command would you use?
Options
- Agrep a*^b*a myfile
- Bgrep .a[^b].a myfile
- Cgrep .[a].*.[a] myfile
- Dgrep .a*^b..a myfile
Unlock 101-400 to see the answer
You've previewed enough free 101-400 questions. Unlock 101-400 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.