What command is used to replace the existing string with
some other?
Answer Posted / pavankumar
sed 's/word1/word2/g' file
it replaces all occurences of word1 with word2 in file.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What does pipe () return?
Why is shebang used?
What is nr in awk command?
What are file commands?
what is the advaantage of each user having its own copy of the shell?
What is rmdir command?
Which command is used to kill the last background job?
What is the function of grep command in unix?
What do chmod, chown, chgrp commands do?
What is the unix command to confirm a remote host is alive or not?
Which command should you use to find the remaining disk space in unix server?
What is awk command used for?
What is the command to compare two files in unix?
What are the commands in UNIX to list the files in a Directory?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.