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 to replace the exact word in vi editor??
suppose a file contains words like amaze,amazed,amazement in
some of the line.But i want to replace only 'amaze' with
delight but don't wanna replace amazed or amazement.
thanks

Answer Posted / supreet goswami

sed-i "s| amaze |delight|g" filename

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the command to view process running?

1113


What does the metacharacter mean?

1136


Which command will print your home directory on screen?

1084


Is ‘du’ a command? If so, what is its use?

1155


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

1165


What is the use of find command in unix?

1155


What happens when we execute a unix command?

1147


What is grep short for?

1051


What does #!/ Bin sh do?

1068


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

1315


What is the nmap command?

1190


What does awk stand for?

1085


Name the general commands in using unix os for a beginner?

1167


What does the “echo” command do?

1155


How many unix commands are there?

1158