LPI
101-400 · Question #279
101-400 Question #279: Real Exam Question with Answer & Explanation
The correct answer is B. /bin/grep -v ^# foobar. See the full explanation below for the reasoning.
Question
Which command will print to standard out only the lines that do not begin with # (pound symbol) in the file foobar?
Options
- A/bin/grep ^# foobar
- B/bin/grep -v ^# foobar
- C/bin/grep #$ foobar
- D/bin/grep -v #$ foobar
Community Discussion
No community discussion yet for this question.