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 / ahmed
sed 's/amaze/amazing/g' filename.txt
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What does this command do? Cat food 1 > kitty
What is the behavioural difference between cmp and diff commands?
Who invented grep?
Which command can you use to find the currently running process in unix server?
How do you repeat a command in terminal?
Enumerate some of the most commonly used network commands in unix?
How do I use grep to search for a file?
What is grep short for?
How do I search for text in vi?
How do I run a whois command?
How do I find previous commands in unix?
What is pipe command in unix?
Describe the zip/unzip command using gzip.
What is merge command in unix?
What command will change your prompt to myprompt?