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 find and replace the below command?

Answers were Sorted based on User's Feedback



How to find and replace the below command? ..

Answer / muralidharan

In a vi mode

:%s/searchword/replacaceword/g

Is This Answer Correct ?    17 Yes 0 No

How to find and replace the below command? ..

Answer / pavithra

Using sed command:

sed 's/searchword/replaceword/g' filename --[It finds the
word in file and replaces and displays in the command line]

sed -i '/s/searchword/replaceword/g' filename -- [It edits
the file, finds and replaces the word and saves it and next
time when u open the file it displays the file with replaced
word]

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More Unix Commands Interview Questions

what is the difference between KILL and KILL -9?

5 Answers   Informatica, Nutanix,


What is the difference between grep and grep?

0 Answers  


Which mode is used for allowing file write,read and append mode?

9 Answers   BitWise, TM,


Why is shebang used?

0 Answers  


What does touch command do in unix?

0 Answers  


What is the difference between pipe and xargs?

2 Answers   Amazon, CTS,


What do chmod, chown, chgrp commands do?

0 Answers  


In UNIX, what is the command to kill a process?

10 Answers  


How are UNIX file permissions represented?

1 Answers  


How do you change your account's password?

6 Answers  


Which command is used to restrict incoming messages?

0 Answers  


What does this command do,"$more readme.txt“?

0 Answers  


Categories