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
how to sort the content of the file based on numeric values
Explain ‘system calls’ with respect to unix commands?
Differentiate cat command from more command.
What is “chmod” command?
What is the difference between cat and more command?
Which command should you use to find the remaining disk space in unix server?
Which command is used to copy files?
How do I run a whois command?
What do know about tee command and its usage?
Which unix command to make a new directory?
How to display no of records in oracle using unix command?
Is it inbetween or in between?
What does grep v do?
Which command can you use to find the currently running process in unix server?
What command will change your prompt to myprompt?