Linux Shell Scripting Tutorial (LSST) v1.05r3
Prev
Chapter 6: Learning expressions with ex
Next

Replacing word with confirmation from user

Give command as follows
:g/Linux/ s//UNIX/gc

After giving this command ex will ask you question like - replace with UNIX (y/n/a/q/^E/^Y)?
Type y to replace the word or n to not replace or a to replace all occurrence of word.


Prev
Home
Next
Find and Replace (Substituting regular expression)
Up
Finding words