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 do I find previous commands in unix?
What is grep and how do you use it?
What are the unix commands?
What do chgrp command do?
What are reported commands?
Why is awk called awk?
Which command will print your home directory on screen?
How do you grep a case insensitive?
What is the use of sed command in unix?
What is $0 bash?
Which command is used to find whether the system is 32 bit or 64 bit?
What is a bash command?
What's a command word?
Are you in or at the office?
Which command is used to create a directory?