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
How can you see the command line history?
What do chmod command do?
What do know about tee command?
Which command can you use to find the currently running process in unix server?
Why is it called grep?
How do I search a whole word in vim?
What does pipe () return?
What is ctrl d?
Who wrote grep?
What happens when we execute a unix command?
Explain ‘library functions’ with respect to unix commands?
What difference between cmp and diff commands?
Which command is used to delete all files in the current directory and all its sub-directories?
What is the behavioural difference between cmp and diff commands?
What is s and g in sed command?