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 I use nslookup?
Explain command to view process running?
what is the use of wild cards?
By using which command we can find the CPU utilization time?
What is the difference between cat and more command?
What are the differences among a system call, a library function, and a unix command?
How to convert a hidden file to normal visible file?
How do you find out all processes that are currently running in UNIX OS?
In vi editor how do you execute unix commands?
what is the command to find out the difference between files and folders?
how to remotely move a file ??? that mean how to move a file one machine to another machine ???
what is the command to list all files in a directory, including the hidden files in UNIX ?