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

What happens when we execute a unix command?

1150


What is the use of sed command in unix?

1215


How do I clear my terminal history?

1183


How do I open a port?

1101


why metadb requires a seperate slice to create Solaris volume manager

3174


What do know about tee command?

1170


What do know about tee command and its usage?

1193


What is the command to view process running?

1116


Describe the zip/unzip command using gzip.

1167


What are awk commands?

1168


What is the use of find command in unix?

1160


What is the command to compare two files in unix?

1127


Name the various commands that are used for the user information in unix.

1093


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

1220


What are the unix commands?

1101