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...

What command is used to replace the existing string with
some other?

Answer Posted / suresh mishra

sed 's/existing_pattern/new_pattern/g' file_name :- It replaces "existing_pattern" with "new_pattern" GLOBALLY.If you are not providing 'g' at the end, it will only replace the first occurrence of the matching pattern.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you grep recursively?

1064


What is grep and how do you use it?

1066


What is awk good for?

1099


Is it inbetween or in between?

1008


What is grep in bash?

1021


What is the first character of the output in ls l command?

1169


Write a command to kill the last background job?

1035


Explain command to view process running?

1087


How to display no of records in oracle using unix command?

1123


How do I delete files from command prompt?

1165


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

1095


Explain command to show the space allocation of files?

1083


What command is used to switching between users in unix?

1035


What do chmod, chown, chgrp commands do?

1229


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

1154