How would you change all occurrences of a value using VI?

Answer Posted / dinesh

:%s/pattern/new value/g

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you grep a case insensitive?

548


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)?

966


What is awk used for?

626


Is ‘du’ a command? If so, what is its use?

639


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

596






What is nr in awk command?

611


How to display no of records in oracle using unix command?

593


why metadb requires a seperate slice to create Solaris volume manager

2562


Can you explain a little bit about command substitution?

617


How do I find previous commands in unix?

601


What is s and g in sed command?

565


What is .sh file?

624


What is rmdir command?

557


What does this command do? Cat food 1 > kitty

984


Is command prompt unix?

586