> Before: > *,WIRE HARNESS, > ,20403,16 > ,FIBERGLASS, > ,100 FOOT, > ,20400,7 > ,FIBERGLASS, > ,250 FOOT SPOOL, > ,WX12-0,35 > ,WX14-1BR/YLW,160 > ,YELLOW STRIPE, > ,87K 7267,16 > ,SINGLE TWISTED PAIR SHIELDED, > ,WITH DRAIN, > ,32206,5 > ,RING NON INS., > ,DT06-3S,4 > ,W3S,2 > ,ORANGE, > ,W3S-P012,2 > ,GREEN, > ,DT06-2S,2* > > After: > *WIRE HARNESS,, > ,20403,16 > ,20400,7 > ,WX12-0,35 > ,WX14-1BR/YLW,160 > ,87K 7267,16 > ,32206,5 > ,DT06-3S,4 > ,W3S,2 > ,W3S-P012,2 > ,DT06-2S,2*
While I'm not sure what transformation you *want* from this data, the following turns your *before* into your *after* form: :g/^,.*[^,],$/d with the exception of the weirdness where the first "*WIRE HARNESS," line grew an extra comma. -tim --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
