Loading practice questions
What does the following command do?
grep -vn "abc" x
Correct Answer: D — It will print all of the lines in file x that do not match the search string "abc", along with their line numbers
Explanation:
The grep command with -v inverts the search to output lines that do not match the pattern, while -n includes the line numbers.