:%s/\(\w\+\)\.dbf\(.\+\)\(.log\)/\1.dbf\2\1\3/
On Mon, Nov 24, 2008 at 1:55 PM, Wang, Sheng (Controllers, Controllers) <[EMAIL PROTECTED]> wrote: > > Hello, friends, > I have a huge file like: > > dbv file=/sja7/appl/oracle/ship/system01.dbf feedback=100 logfile=./.log > blocksize=8192 > dbv file=/sja8/appl/oracle/ship/undotbs.dbf feedback=100 logfile=./.log > blocksize=8192 > dbv file=/sja7/appl/oracle/ship/tools.dbf feedback=100 logfile=./.log > blocksize=8192 > dbv file=/sja7/appl/oracle/ship/dtuser_01.dbf feedback=100 logfile=./.log > blocksize=8192 > ..... > > how can I change them to like below (acturally, how to add logfile names > which is conresponding to its datafile names) by using vim? > > > > dbv file=/sja7/appl/oracle/ship/system01.dbf feedback=100 > logfile=./system01.log blocksize=8192 > dbv file=/sja8/appl/oracle/ship/undotbs.dbf feedback=100 > logfile=./undotbs.log blocksize=8192 > dbv file=/sja7/appl/oracle/ship/tools.dbf feedback=100 logfile=./tools.log > blocksize=8192 > dbv file=/sja7/appl/oracle/ship/dtuser_01.dbf feedback=100 > logfile=./dtuser_01.log blocksize=8192 > ............ > > > Thank you very much > > Jerry > > Sheng Wang > HIG Reinsurance IT > (860)547 3563 > > ************************************************************ > This communication, including attachments, is for the exclusive use of > addressee and may contain proprietary, confidential and/or privileged > information. If you are not the intended recipient, any use, copying, > disclosure, dissemination or distribution is strictly prohibited. If you > are not the intended recipient, please notify the sender immediately by > return e-mail, delete this communication and destroy all copies. > ************************************************************ > > > > -- Kent --- http://www.datanoise.com --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
