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

How does shebang work?

1042


How do you repeat a command in terminal?

1184


How can you see the command line history?

1110


What is difference between grep and find command in unix?

1174


What is merge command in unix?

1470


Which command is used to kill the last background job?

1311


How does pipe () work?

1063


What does pipe () return?

1048


What is used to type command?

1040


Which command is used to delete all files in the current directory and all its sub-directories?

1231


How do I run a bash script?

1147


What is s and g in sed command?

1080


What does the “echo” command do?

1122


What is the difference between cat command and more command?

1158


What do know about tee command and its usage?

1150