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 command to find out the difference between files and folders?

6 Answers  


What Command will remove a Directory in UNIX?

8 Answers   IBM,


How to redirect standard error to a file?

2 Answers  


What is Unix, and how does it differ from other operating systems?

2 Answers  


Give two UNIX kernel parameters that effect an Oracle install

3 Answers   Oracle,


What is awk good for?

0 Answers  


How can you change the owner or group of a file?

1 Answers  


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

0 Answers  


what is the difference between Touch & cat command

21 Answers   QA,


Explain how to use grep command to list find the records of a file containing 10 different strings?

0 Answers  


How does pipe () work?

0 Answers  


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

0 Answers  


Categories