Which command is used to replace word 'cat' (already present in the file) with 'mouse' at all places in a file 'old.txt' and save the result in a new file 'new.txt'?
a) sed 's/cat/mouce/g' old.txt > new.txt
b) sed 's/cat/mouse' old.txt new.txt
c) sed '/s/cat/mouse/g' old.txt new.txt
d) sed '/s/cat/mouse' old.txt > new.txt

Submitted by: Murtaza
a) sed 's/cat/mouce/g' old.txt > new.txt
Submitted by: Murtaza

Read Online Linux OS Editors Job Interview Questions And Answers