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

Answer Posted / sridhar

press esc+shift
then when the VI takes u to the edit mode use the following.

:%s/pattern/new value/g

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to restrict incoming messages?

594


What command is used to switching between users in unix?

566


What is awk used for?

626


Why is awk called awk?

581


how to sort the content of the file based on numeric values

1258






Give the command for finding the current date.

585


Explain how to use grep command to list find the records of a file containing 10 different strings?

600


How do I find previous commands in unix?

600


How do I search a whole word in vim?

700


why metadb requires a seperate slice to create Solaris volume manager

2560


Explain command to display different lines that are found when compare two files?

680


What is the command to find maximum memory taking process on the server?

676


What is the nmap command?

589


What are some command words?

569


Can you explain a little bit about command substitution?

614