I had asked a similar question previously (How to copy each line 11 times, incrementing the last "1" in each line from 2-12). I wasn't sure if I should ask this follow-up question in that same thread or not, but I think it might have been confusing to do that, so I'll ask a new question instead.
I would like to take a line that looks like*:
...?start=0&end=180&...
and copy it 19 times such that each of the two numbers is incremented by 180, so it would look like:
...?start=0&end=180&...
...?start=180&end=360&...
...?start=360&end=540&...
...
...?start=3420&end=3600&...
How can I do that (preferably with a one-line command, but a macro is fine too)?
Thank you all very much.
*The ...
represents other text in the line, before and after that particular segment. (Also, in case it's relevant, I'll note that the one ?
character and the two &
characters shown in that segment of the line are the only occurrences of those characters in the entire line.)