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
What is pipe command in unix?
What is awk good for?
What is command statement?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
How do you grep a case insensitive?
How do I use grep to search for a file?
What is the command to compare two files in unix?
Which command is used to copy files?
Which unix command lists files/folders in alphabetical order?
What is the behavioural difference between cmp and diff commands?
How can you see the command line history?
How do you repeat a command in terminal?
How does shebang work?
Why is grep called grep?
What is grep in bash?