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
How do you grep recursively?
What is grep and how do you use it?
What is awk good for?
Is it inbetween or in between?
What is grep in bash?
What is the first character of the output in ls l command?
Write a command to kill the last background job?
Explain command to view process running?
How to display no of records in oracle using unix command?
How do I delete files from command prompt?
How to use grep command to list find the records of a file containing 10 different strings?
Explain command to show the space allocation of files?
What command is used to switching between users in unix?
What do chmod, chown, chgrp commands do?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.