Answers

Question and Answer:

  Home  Linux Editors

⟩ 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

a) sed 's/cat/mouce/g' old.txt > new.txt

 179 views

More Questions for you: