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

How does shebang work?

1065


What is the command to find hidden files in the current directory?

1192


How do I open a port?

1084


Give the command for finding the current date.

1104


Who invented grep?

1158


Which command will print your home directory on screen?

1078


Can you explain a little bit about command substitution?

1112


How do you repeat a command in terminal?

1223


How can you see the command line history?

1138


What does awk stand for?

1077


What are reported commands?

1125


What does 'mkdir' command do in UNIX?

1310


Explain command to view process running?

1126


Is grep faster than awk?

1041


What is the general format of unix command syntax?

1935