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
How does shebang work?
What is the command to find hidden files in the current directory?
How do I open a port?
Give the command for finding the current date.
Who invented grep?
Which command will print your home directory on screen?
Can you explain a little bit about command substitution?
How do you repeat a command in terminal?
How can you see the command line history?
What does awk stand for?
What are reported commands?
What does 'mkdir' command do in UNIX?
Explain command to view process running?
Is grep faster than awk?
What is the general format of unix command syntax?