1

I have a file with 2000 lines.

I want to add the current line number between the ().

For example:

  1. c-data (1).json
  2. c-data (2).json
  3. c-data (3).json
  4. c-data (4).json

A screenshot of example test data:

enter image description here

harrymc
  • 480,290

1 Answers1

1

I have a super easy idea for you.

  1. Use Notepad++ to replace the 5 to nothing:

Search --> Replace --> On Find what field write 5 --> keep empty the replace with field --> Click on replace All, exactly like the next screenshots:

Notepad++

  1. The second step is to click on the empty area like the next screenshot: empty area

  2. Click on edit --> column editor --> click on number to insert.

column editor

  1. The last step is to replace the spaces with nothing again. The result will be exactly what you ask.
F.Rahamim
  • 332
  • 1
  • 9