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 happens when we execute a unix command?
What is the use of sed command in unix?
How do I clear my terminal history?
How do I open a port?
why metadb requires a seperate slice to create Solaris volume manager
What do know about tee command?
What do know about tee command and its usage?
What is the command to view process running?
Describe the zip/unzip command using gzip.
What are awk commands?
What is the use of find command in unix?
What is the command to compare two files in unix?
Name the various commands that are used for the user information in unix.
What is the use of the command 'ls -x chapter[1-5]' ?
What are the unix commands?