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

Answer Posted / chitra

One should be in command mode for doing this.(i.e press esc)
:%s/oldpattern/newpattern and press enter

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Enlist some filename manipulation commands in unix.

556


What is merge command in unix?

946


Name the unix command to find how many days the server has been up.

612


Is grep faster than awk?

570


How many unix commands are there?

635






What is the difference between awk and grep?

561


What do know about tee command?

607


Differentiate cmp command from diff command.

592


How do you grep a case insensitive?

548


What is awk good for?

592


What is the first character of the output in ls l command?

637


What is command substitution?

627


Why is shebang used?

600


What does the md command do?

578


What does this command do? Cat food 1 > kitty

984