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

How can we use grep command in unix?

1222


What command will change your prompt to myprompt?

1336


Which unix command lists files/folders in alphabetical order?

1776


What is the pipe command?

1204


What is updatedb?

1060


How many unix commands are there?

1164


What is pipe command in unix?

1312


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

1221


Why is it called a shebang?

1204


How does the system know where one command ends and another begins?

2270


Who wrote grep?

1076


Can you explain a little bit about command substitution?

1125


What is the search command in unix?

1099


What is awk command used for?

1255


Explain command to display different lines that are found when compare two files?

1188