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 the behavioural difference between cmp and diff commands?
Why is shebang used?
How do I run a whois command?
What do know about tee command and its usage?
What are filter commands in unix?
What does this command do? Cat food 1 > kitty
What will the following command do?
What is {} in find command?
Is it inbetween or in between?
Which command is used to create a directory?
What does #!/ Bin sh do?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
Describe the zip/unzip command using gzip.
How do I find previous commands in unix?
What is “chmod” command?