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 does sed command do in unix?
What does the metacharacter mean?
what does the command 'wc' do?
in UNIX,what is the command to remove directory with files?
Which RAID Levels supported by LVM?
Why is shebang used?
what is the use of "grep" command?
What is the command to check ports active in UNIX?
How can you change the owner or group of a file?
what is the advaantage of each user having its own copy of the shell?
0 Answers BMC, CNS, DELL, Infosys,
What is the difference between grep and grep?
How do you find files in Unix?