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

Which unix command lists files/folders in alphabetical order?

1654


Name the general commands in using unix os for a beginner?

1088


How do I search a whole word in vim?

1125


What do chown command do?

1114


Why is it called a shebang?

1085


How to display no of records in oracle using unix command?

1100


Why is grep called grep?

1230


What is a command and examples?

1149


Why is awk called awk?

1015


Enlist some filename manipulation commands in unix.

1081


What is the difference between awk and grep?

1147


What's a command word?

1112


What is unix command line?

1173


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

1139


How can we use grep command in unix?

1137