How to find and replace the below command?
Answers were Sorted based on User's Feedback
Answer / muralidharan
In a vi mode
:%s/searchword/replacaceword/g
| Is This Answer Correct ? | 17 Yes | 0 No |
Answer / 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 |
what is the difference between KILL and KILL -9?
5 Answers Informatica, Nutanix,
What is the difference between grep and grep?
Which mode is used for allowing file write,read and append mode?
Why is shebang used?
What does touch command do in unix?
What is the difference between pipe and xargs?
What do chmod, chown, chgrp commands do?
In UNIX, what is the command to kill a process?
How are UNIX file permissions represented?
How do you change your account's password?
Which command is used to restrict incoming messages?
What does this command do,"$more readme.txt“?