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 grep and grep?
What is the search command in unix?
How do you remove a crontab file?
What is the use of awk command in unix?
Name the various commands that are used for the user information in unix.
Which unix command to make a new directory?
What is awk used for?
How do you find out all processes that are currently running in UNIX OS?
distinguish between physical addresses and logical address?
solaris Run level?
What is the different between UNIX command and UNIX shell script?
What is .sh file?