How to replace the exact word in vi editor??
suppose a file contains words like amaze,amazed,amazement in
some of the line.But i want to replace only 'amaze' with
delight but don't wanna replace amazed or amazement.
thanks
Answer Posted / majeed
First open the file by using vi editor and then
use this :%s /amaze/delight/g
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is s and g in sed command?
What is the significance of the 'tee' command?
What is the functionality of a top command?
What is the difference between cat command and more command?
How can we use grep command in unix?
What are the dos commands?
What is the behavioural difference between cmp and diff commands?
What command is used to switching between users in unix?
Explain the steps that a shell follows while processing a command.
What is awk command used for?
What is command statement?
What does the command ' $who | sort –logfile > newfile' do?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Which unix command to make a new directory?
What is the use of tee command?