columns insert numbers but increment the number all 5 times

columns insert numbers but increment the number all 5 times

5
NewbieNewbie
5

    Aug 19, 2015#1

    Hi,

    I have a file with this structure and 4000 lines:

    Code: Select all

    Item_Enabled=True                          
    Item_ImageIndex=-1                         
    Item_State=cbsGrayed                       
    Item_Tag=9                                 
    Item_Text=46495622201502040100186530       
    Item_Enabled=True                          
    Item_ImageIndex=-1                         
    Item_State=cbsGrayed                       
    Item_Tag=9                                 
    Item_Text=46495622201502040233458760       
    Item_Enabled=True                          
    Item_ImageIndex=-1                         
    Item_State=cbsChecked                      
    Item_Tag=0                                 
    Item_Text=46495622201508182249315810
    The numbering should increment every 5 lines with this result:

    Code: Select all

    Item0_Enabled=True                          
    Item0_ImageIndex=-1                         
    Item0_State=cbsGrayed                       
    Item0_Tag=9                                 
    Item0_Text=46495622201502040100186530       
    Item1_Enabled=True                          
    Item1_ImageIndex=-1                         
    Item1_State=cbsGrayed                       
    Item1_Tag=9                                 
    Item1_Text=46495622201502040233458760       
    Item2_Enabled=True                          
    Item2_ImageIndex=-1                         
    Item2_State=cbsChecked                      
    Item2_Tag=0                                 
    Item2_Text=46495622201508182249315810
    How can I do this with UltraEdit?

      Aug 19, 2015#2

      My own solution:

      Per search and replace "^pItem_x" to "^pItem_x" on all items except the "Item_Enabled" I got this list:

      Code: Select all

      Item_Enabled=True^tItem_ImageIndex=-1^tItem_State=cbsGrayed^tItem_Tag=9^tItem_Text=46495622201502040100186530
      Item_Enabled=True^tItem_ImageIndex=-1^tItem_State=cbsGrayed^tItem_Tag=9^tItem_Text=46495622201502040233458760
      Item_Enabled=True^tItem_ImageIndex=-1^tItem_State=cbsChecked^tItem_Tag=0^tItem_Text=46495622201508182249315810
      Now I could use the standard column numbering after every "Item".

      Then a search and replace of ^p to ^p and all is fine.

      But it should be a "nice to have" if IDM implements a numbering option "increment counter after every [ xxx ] lines".