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

Which command is used to create a directory?

758


What will the following command do?

791


What is sed awk grep?

807


What do chown command do?

769


Name the unix command to find how many days the server has been up.

845






What is the nmap command?

789


Differentiate cat command from more command.

761


Can you enlist some commonly used network commands?

785


Which command will print your home directory on screen?

769


What is “chmod” command?

737


Is it inbetween or in between?

779


What does the metacharacter mean?

790


What is the general format of unix command syntax?

1107


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

1833


What is a command and examples?

784