Answer Posted / pavithra
Using sed command:
sed 's/searchword/replaceword/g' filename --[It finds the
word in file and replaces and displays in the command line]
sed -i '/s/searchword/replaceword/g' filename -- [It edits
the file, finds and replaces the word and saves it and next
time when u open the file it displays the file with replaced
word]
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is the pipe command?
Why is grep called grep?
How do you repeat a command in terminal?
Who command in unix?
How can we use grep command in unix?
Using unix command how to display no of records in oracle?
Who invented grep?
Explain command to display different lines that are found when compare two files?
Explain the steps that a shell follows while processing a command.
What is the command to find maximum memory taking process on the server?
Differentiate cat command from more command.
How do I run a bash script?
What is command statement?
Who wrote grep?
Explain command to view process running?