The Gateway to Computer Science Excellence
+1 vote
1k views

What does the following command do? grep -vn "abc" x

  1. It will print all of the lines in the file x that match the search string "abc"
  2. It will print all of the lines in file x that do not match the search string "abc"
  3. It will print the total number of lines in the file x that match the search string "abc"
  4. It will print the specific line numbers of the file x in which there is a match for string "abc"
in Operating System by Veteran (105k points)
recategorized by | 1k views

1 Answer

+1 vote
ans is B grep(globally search a regular expression and print it) with -v invert match option display those line which do not contain the specified string
by Boss (49.3k points)
edited by
+1
Thank you for the answer but it cannot be v for verbose that doesn't make sense, it is v for invert-match!
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,275 answers
198,154 comments
104,823 users