Jerrygreat wrote: > > Hello, > I have a large file like > -rw-r--r-- 1 shrwood dba 16904375 Oct 30 11:45 > RDRDBA.CLAIM_HISTORY.dmp.gz > -rw-r--r-- 1 shrwood dba 1704960 Oct 30 12:19 RDRDBA.NOROWS.dmp > -rw-r--r-- 1 shrwood dba 170785527 Oct 30 12:20 > RDRDBA.STATISTICAL_CODE_VALUE.dmp.gz > How can I use one command line to delete all the staffs before RDRDBA, make > the file like > > RDRDBA.STG_NPPS_SEGMENT_2.dmp.gz > RDRDBA.PROCESS_CONTROL.dmp.gz > RDRDBA.CLAIM_FAMILY.dmp.gz
You can use :%s/^.\{-}\zeRDRDBA -tim --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---