Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 many unix commands are there?

1208


What is updatedb?

1092


What is difference between grep and find command in unix?

1276


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1358


What is the command to view process running?

1156


How do I use grep to find a file?

1164


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

1286


What are grep patterns?

1149


What is the comma to show the space allocation of files?

1135


What is the use of egrep command in unix?

1245


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

1221


Why is awk called awk?

1136


What is grep r?

1161


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

1266


Can you enlist some commonly used network commands?

1158