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
Explain ‘system calls’ with respect to unix commands?
What is in grep command?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Which command is used to delete all files in the current directory and all its sub-directories?
What is grep r?
What is the first character of the output in ls l command?
Write a command that will display files in the current directory, in a colored, long format.
What does this command do,"$more readme.txt“?
What happens when we execute a unix command?
How do I use grep to search for a file?
What is the difference between awk and grep?
Explain command to view process running?
How do you repeat a command in terminal?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What is the nmap command?