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 command to find out the difference between files and folders?
What Command will remove a Directory in UNIX?
How to redirect standard error to a file?
What is Unix, and how does it differ from other operating systems?
Give two UNIX kernel parameters that effect an Oracle install
What is awk good for?
How can you change the owner or group of a file?
What is the command to find maximum memory taking process on the server?
what is the difference between Touch & cat command
Explain how to use grep command to list find the records of a file containing 10 different strings?
How does pipe () work?
Which command is used to delete all files in the current directory and all its sub-directories?