What command is used to replace the existing string with
some other?
Answer Posted / suresh mishra
sed 's/existing_pattern/new_pattern/g' file_name :- It replaces "existing_pattern" with "new_pattern" GLOBALLY.If you are not providing 'g' at the end, it will only replace the first occurrence of the matching pattern.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the pipe command?
Who invented grep?
Explain command to show the space allocation of files?
What is a bash command?
What are the dos commands?
What is rmdir command?
What is the command to find maximum memory taking process on the server?
How can we use grep command in unix?
How do I use grep to find a file?
What is sed awk grep?
What is grep in bash?
What is the search command in unix?
Name the unix command to find how many days the server has been up.
Is ‘du’ a command? If so, what is its use?
Does cp command overwrite files?