edited by
2,249 views
1 votes
1 votes

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"
edited by

1 Answer

1 votes
1 votes
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
Answer:

Related questions

3 votes
3 votes
2 answers
1
go_editor asked Jul 30, 2016
11,425 views
A LRU page replacement is used with $4$ page frames and eight pages. How many page faults will occur with the reference string $0172327103$ if the four frames are initial...
3 votes
3 votes
1 answer
4