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 / amit kumar

sed 's/existing_word/new_word/g' file1.txt.It replaces the
all the existing word with new word wherever it occurs in
file1.g stands for global.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pipe command in unix?

1320


What is awk good for?

1158


What is command statement?

1195


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

1270


How do you grep a case insensitive?

1072


How do I use grep to search for a file?

1074


What is the command to compare two files in unix?

1139


Which command is used to copy files?

1196


Which unix command lists files/folders in alphabetical order?

1786


What is the behavioural difference between cmp and diff commands?

1305


How can you see the command line history?

1162


How do you repeat a command in terminal?

1253


How does shebang work?

1084


Why is grep called grep?

1317


What is grep in bash?

1082