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 we use grep command in unix?
What command will change your prompt to myprompt?
Which unix command lists files/folders in alphabetical order?
What is the pipe command?
What is updatedb?
How many unix commands are there?
What is pipe command in unix?
What is the first character of the output in ls l command?
Why is it called a shebang?
How does the system know where one command ends and another begins?
Who wrote grep?
Can you explain a little bit about command substitution?
What is the search command in unix?
What is awk command used for?
Explain command to display different lines that are found when compare two files?