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

How to find $ai_serual resolved path by using unix

1018


What do know about tee command?

594


Why is it called a shebang?

565


What is the comma to display different lines that are found when compare two files?

587


Who invented grep?

643






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

948


What does awk stand for?

601


What is awk used for?

611


How do you grep a case insensitive?

532


What is awk good for?

578


Which unix command to make a new directory?

583


What is merge command in unix?

938


What happens when we execute a unix command?

590


What is updatedb?

576


What are bash commands?

584