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
Why is awk called awk?
What is the difference between cat and more command?
how to sort the content of the file based on numeric values
What is difference between grep and find command in unix?
hw will u use awk in replacing cahrs and files
How do I search for text in vi?
Which command should you use to find the remaining disk space in unix server?
How does pipe () work?
What is the functionality of a top command?
How do I use grep to search for a file?
How do you grep recursively?
Enlist some filename manipulation commands in unix.
Can you explain a little bit about command substitution?
What are bash commands?
What is updatedb?