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 to see unused port number in Solaris?
By using which command we can find the CPU utilization time?
what are processor execution levels and priorities?
what is the meaning of this command rm -rf / what will it do ?
What are bash commands?
How do I search for text in vi?
what is mount ,tell me about mount ,how can u use in real time project??
Which command is used to copy files?
How to get the last ten lines of a file using awk utility?
how to check a file system type
What are the general commands in using unix os for a beginner?
What is the use of tee command?