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 is the pipe command?

1122


Who invented grep?

1105


Explain command to show the space allocation of files?

1067


What is a bash command?

1108


What are the dos commands?

1190


What is rmdir command?

1036


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

1144


How can we use grep command in unix?

1137


How do I use grep to find a file?

1054


What is sed awk grep?

1070


What is grep in bash?

1004


What is the search command in unix?

1042


Name the unix command to find how many days the server has been up.

1107


Is ‘du’ a command? If so, what is its use?

1089


Does cp command overwrite files?

1130