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
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What does touch command do in unix?
What does awk stand for?
What is a command and examples?
What does 'mkdir' command do in UNIX?
What is time_t?
Which command will print your home directory on screen?
How do I find previous commands in unix?
What is the use of find command in unix?
Why is awk called awk?
What is the unix command to confirm a remote host is alive or not?
What are the commands in UNIX to list the files in a Directory?
Write a command that will display files in the current directory, in a colored, long format.
How do I search for a file in unix command?
What is the general format of unix command syntax?