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 / pavankumar

sed 's/word1/word2/g' file

it replaces all occurences of word1 with word2 in file.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does pipe () return?

1035


Why is shebang used?

1063


What is nr in awk command?

1149


What are file commands?

1183


what is the advaantage of each user having its own copy of the shell?

2517


What is rmdir command?

1051


Which command is used to kill the last background job?

1299


What is the function of grep command in unix?

1120


What do chmod, chown, chgrp commands do?

1234


What is the unix command to confirm a remote host is alive or not?

1160


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

1252


What is awk command used for?

1151


What is the command to compare two files in unix?

1068


What are the commands in UNIX to list the files in a Directory?

1126


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

1160