The command “sed -n ‘/sanfoundry/p’ old.txt” will
A. print the lines containing the word ‘sanfoundry’ in file old.txt
B. delete the lines containing the word ‘sanfoundry’ in file old.txt
C. will generate an error message
D. none of the mentioned
Answer:A
The command “sed -n ‘/sanfoundry/p’ old.txt” will
A. print the lines containing the word ‘sanfoundry’ in file old.txt B. delete the lines containing the word ‘sanfoundry’ in file old.txt C. will generate an error message D. none of the mentioned
Explanation:None.