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 is grep short for?
What does grep v do?
What is the command to view process running?
How do you grep recursively?
How can we use grep command in unix?
What is awk good for?
What does sed command do in unix?
How do I delete files from command prompt?
What is ‘ps’ command for?
why metadb requires a seperate slice to create Solaris volume manager
Explain command to display different lines that are found when compare two files?
What happens when we execute a unix command?
What does the command ' $who | sort –logfile > newfile' do?
What does the metacharacter mean?
What is the difference between cat and more command?