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 I use grep to find a file?
How do I search for text in vi?
What does this command do? Cat food 1 > kitty
What do chown command do?
What are the general commands in using unix os for a beginner?
Which command can you use to find the currently running process in unix server?
Are you in or at the office?
What is the functionality of a top command?
How to display no of records in oracle using unix command?
What are some command words?
What is .sh file?
What is the use of the command 'ls -x chapter[1-5]' ?
What is used to type command?
Is command prompt unix?
Can you explain a little bit about command substitution?