What command is used to replace the existing string with
some other?
Answer Posted / pavankumar
sed 's/word1/word2/g' file
it replaces all occurences of word1 with word2 in file.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Describe the zip/unzip command using gzip.
What does awk stand for?
How can we use grep command in unix?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is a command and examples?
What is “chmod” command?
What does pipe () return?
What is grep command in unix with examples?
What is the use of egrep command in unix?
How does the system know where one command ends and another begins?
Differentiate cmp command from diff command.
What is the difference between cat command and more command?
What do chgrp command do?
What is the use of finger command?
Is command prompt unix?