101-400 Exam QuestionsBrowse all questions from this exam

101-400 Exam - Question 53


What is the effect of the egrep command when the -v option is used?

Show Answer
Correct Answer: B

The egrep command with the -v option inverts the matching behavior, meaning it only displays lines that do not match the specified pattern or regular expression. It filters out and shows lines that do not contain the pattern.

Discussion

1 comment
Sign in to comment
DuboisNicolasDuclairOption: B
Oct 21, 2023

The effect of the `egrep` command when the `-v` option is used is: B. It only outputs non-matching lines. The `-v` option in `egrep` (or `grep -E`) inverts the matching behavior, meaning it only displays lines that do not match the specified pattern or regular expression. It filters out and shows lines that do not contain the pattern.