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

Answer Posted / sameer

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

:1,$s/pattern to be changed/new value/g

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What command is used to check the current users?

582


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

614


What is awk good for?

576


What is awk command used for?

593


What is the difference between cat command and more command?

593






What are bash commands?

583


What command will change your prompt to myprompt?

690


How do I use grep to search for a file?

574


What are filter commands in unix?

545


What is used to type command?

532


How do I search for text in vi?

574


What does #!/ Bin sh do?

574


What is “chmod” command?

556


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

661


What is command statement?

534