How to add an incremental sequence of numbers to a text file
Posted: Fri Dec 29, 2023 4:55 pm
Greetings:
I have a text file that is a collection of numerical values that correspond to the pages and lines in a transcript. I use it as a script to create excerpts in an application called TrialDirector. I create the list manually, edit several times, but at the end I need to give each group of "designations" a unique three digit number, in sequence, starting from a given number, and put that number in two places in each set in the list.
What I start with is this:
What I want to end up with is this:
Of course, these lists are anywhere from a dozen to hundreds long.
Can TextPad add a sequence of numbers (twice) to a thing like this? Your help is appreciated.
I have a text file that is a collection of numerical values that correspond to the pages and lines in a transcript. I use it as a script to create excerpts in an application called TrialDirector. I create the list manually, edit several times, but at the end I need to give each group of "designations" a unique three digit number, in sequence, starting from a given number, and put that number in two places in each set in the list.
What I start with is this:
Code: Select all
C(CLIP )
D(Smith Clip )
26:11 - 18
26.22 - 27.13
C(CLIP )
D(Smith Clip )
33:13 - 34:06
C(CLIP )
D(Smith Clip )
44:04 - 45.1
45.14 - 45:20 Code: Select all
C(CLIP 031)
D(Smith Clip 031)
26:11 - 18
26.22 - 27.13
C(CLIP 032)
D(Smith Clip 032)
33:13 - 34:06
C(CLIP 033)
D(Smith Clip 033)
44:04 - 45.1
45.14 - 45:20 Can TextPad add a sequence of numbers (twice) to a thing like this? Your help is appreciated.