Discussion Forum
Que. | What does the following command do ? grep − vn "abc" x |
a. | It will print all of the lines in the file x that match the search string "abc" |
b. | It will print all of the lines in file x that do not match the search string "abc" |
c. | It will print total no of the lines in file x that match the search string "abc" |
d. | It will print the specific line numbers of file x in which there is a match for the string "abc" |
Answer:It will print all of the lines in the file x that match the search string "abc" |
Durga Devi S :(November 28, 2019)
above answer is wrong
Right answer is b. b. It will print all of the lines in file x that do not match the search string "abc" |
http://qpeng.org/computer/grep.htm |
Click Here to Reply |