in Operating System edited by
1,882 views
1 vote
1 vote

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 edited by
1.9k views

1 Answer

1 vote
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
edited by

1 comment

Thank you for the answer but it cannot be v for verbose that doesn't make sense, it is v for invert-match!
1
1
Answer:

Related questions