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 does a process mean?

7 Answers   Infosys,


what is the functionality of kernel in unix architecture?

13 Answers   HCL,


What are grep patterns?

0 Answers  


What is .sh file?

0 Answers  


distinguish between physical addresses and logical address?

3 Answers   Infosys,


How can we use grep command in unix?

0 Answers  


What is the difference between AWK and SED commands? Plz give example and explain...

3 Answers   RBS,


How many unix commands are there?

0 Answers  


Which command should you use to find the remaining disk space in unix server?

0 Answers  


what is kernel?

6 Answers  


what will this do $cat > file.c ?(file.c is a file in current directory)

20 Answers   IBM,


What is the difference between grep and grep?

0 Answers  


Categories