Saturday, September 25, 2010

Some Basic VI Concepts

:%s/DBA//g -To replace the word "DBA" with blank space
:%s/^/DBA/g -To add a Text "DBA" in front of all words
:%s/$/DBA/ -To add a Text "DBA" at the last of all words
:%s/\s\+$// -To remove blank spaces.

1 comment:

  1. Hello,

    The above Vi commands it is very usefull for us.. Thanks for your posting this is type of commands...Keep it up !!!!!!

    Thanks
    Ravi P

    ReplyDelete