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 run a whois command?
what is tar command and what are the different types of tar commands?
How to view the hidden files in /etc directory?
Write a command that will display files in the current directory, in a colored, long format.
distinguish between user mode and kernel mode?
What is the command to compare two files in unix?
hi i have directories within the directory. Now i want to copy the directory along with all directories included in it to one location by using copy command? what is the command
What is a bash command?
How do I search for a file in unix command?
How do I use nslookup?
can we use cat command as an editor ..???
what is the default signal kill in unix?