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 |
How do you grep recursively?
How does a user get the current date, time in UNIX?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
How to install scsi driver in unix? give me explanation clearly?
What is the protocol for PING command?
How do I run a bash script?
How to redirect standard error to a file?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What is the procedure of "at" and crontab" commands?
What is the command to check ports active in UNIX?
How can you change the owner or group of a file?
Give Command that will change the name of a directly from paypal to eBay