Vidyalelo
Computer Science · Q200

Linux

Engineering and GATE · Computer Science · question 200

Q200

The command "sed -n '/example/p' old.txt" will

A.
print the lines containing the word 'example' in file old.txt
Answer
B.
delete the lines containing the word 'example' in file old.txt
C.
will generate an error message
D.
none of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board