Oracle
1Z0-876 · Question #113
Wally has two files with data about dark and light coffee beans. The data is stored in the files named dark_beans and light_beans. The files are in the coffee directory of Wally's home directory…
The correct answer is A. sort ./coffee/dark_beans ./coffee/light_beans | grep ^[Gg]. See the full explanation below for the reasoning.
Question
Wally has two files with data about dark and light coffee beans. The data is stored in the files named dark_beans and light_beans. The files are in the coffee directory of Wally's home directory. Wally would like to display a sorted list of all of the words from both lists that start with the letter "g" or "G". The files contain mixed case names. Which command line can Wally use to display the data?
Options
- Asort ./coffee/dark_beans ./coffee/light_beans | grep ^[Gg]
- Bcat ./coffee/dark_beans ./coffee/light_beans | grep -i G | sort
- Csort -f ./coffee/dark_beans ./coffee/light_beans | grep g
- Dsort ./coffee/dark_beans ./coffee/light_beans | grep -i g
How the community answered
(65 responses)- A74% (48)
- B15% (10)
- C3% (2)
- D8% (5)
Community Discussion
No community discussion yet for this question.