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...

How to find and replace the below command?

Answer Posted / pavithra

Using sed command:

sed 's/searchword/replaceword/g' filename --[It finds the
word in file and replaces and displays in the command line]

sed -i '/s/searchword/replaceword/g' filename -- [It edits
the file, finds and replaces the word and saves it and next
time when u open the file it displays the file with replaced
word]

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the pipe command?

1149


Why is grep called grep?

1249


How do you repeat a command in terminal?

1180


Who command in unix?

1108


How can we use grep command in unix?

1166


Using unix command how to display no of records in oracle?

1136


Who invented grep?

1134


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

1133


Explain the steps that a shell follows while processing a command.

1197


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

1177


Differentiate cat command from more command.

1109


How do I run a bash script?

1145


What is command statement?

1131


Who wrote grep?

1025


Explain command to view process running?

1096