1 1 vote What does the following command do? grep -vn "abc" x It will print all of the lines in the file x that match the search string "abc" It will print all of the lines in file x that do not match the search string "abc" It will print the total number of lines in the file x that match the search string "abc" It will print the specific line numbers of the file x in which there is a match for string "abc" Operating System ugcnetcse-june2015-paper2 operating-system shell-script non-gatecse + – go_editor 2.8k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 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 Sanjay Sharma answered Jul 31, 2016 • edited Jun 17, 2018 by Sanjay Sharma Sanjay Sharma comment Share Follow See 1 comment 1 1 comment reply AadilRashid commented Jun 15, 2018 reply Follow flag 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 replyShare Please log in or register to add a comment.