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 I use grep to find a file?

1161


How do I search for text in vi?

1100


What does this command do? Cat food 1 > kitty

1632


What do chown command do?

1249


What are the general commands in using unix os for a beginner?

1213


Which command can you use to find the currently running process in unix server?

1163


Are you in or at the office?

1171


What is the functionality of a top command?

1156


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

1223


What are some command words?

1198


What is .sh file?

1256


What is the use of the command 'ls -x chapter[1-5]' ?

1268


What is used to type command?

1099


Is command prompt unix?

1215


Can you explain a little bit about command substitution?

1159