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 / shilpi gupta
sed 's/\<amaze\>/delight/g' file_name
or
In Vi editor..you can use
:%s/\<amaze\>/delight/g
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is the use of find command in unix?
What is ctrl d?
What is the command to view process running?
Which command is used to find whether the system is 32 bit or 64 bit?
What does 'mkdir' command do in UNIX?
What difference between cmp and diff commands?
What does #!/ Bin sh do?
What does awk stand for?
What are bash commands?
Can you explain a little bit about command substitution?
Describe the zip/unzip command using gzip.
Who command in unix operating system?
What is the command to find hidden files in the current directory?
what is the advaantage of each user having its own copy of the shell?
What is the first character of the output in ls l command?