PrepAway - Latest Free Exam Questions & Answers

Which command line can Wally use to display the data?

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?

PrepAway - Latest Free Exam Questions & Answers

A.
sort ./coffee/dark_beans ./coffee/light_beans | grep ^[Gg]

B.
cat ./coffee/dark_beans ./coffee/light_beans | grep -i G | sort

C.
sort -f ./coffee/dark_beans ./coffee/light_beans | grep g

D.
sort ./coffee/dark_beans ./coffee/light_beans | grep -i g


Leave a Reply