Here's my problem... I have an id that looks like:
ins1 represents the top level tag
proc1 represents the first proc inside of the ins
s1 represents the steps inside the proc
I need a script to make the following happen:
And so on. I can't use column mode because there is a lot of text in between the ids, and depending on the level and what tags I'm using, the ids may or may not line up with the numbers. My example ID is a VERY basic version of what I'm actually using.
Is it possible to increment the s numbers inside each proc, then each proc inside each ins, then each ins, starting over with s and proc within each group? Does that even make sense? I tried to expand on the regular expressions example I was given in my last question (thank you!), but I can't seem to make it increment the numbers.
Code: Select all
ins1proc1s1
proc1 represents the first proc inside of the ins
s1 represents the steps inside the proc
I need a script to make the following happen:
Code: Select all
ins1proc1s1
ins1proc1s2
ins1proc1s3
ins1proc2s1
ins1proc2s2
ins1proc2s3
ins1proc3s1
ins1proc3s2
ins1proc3s3
ins2proc1s1
ins2proc1s2
ins2proc1s3
ins2proc2s1
ins2proc2s2
ins2proc2s3
Is it possible to increment the s numbers inside each proc, then each proc inside each ins, then each ins, starting over with s and proc within each group? Does that even make sense? I tried to expand on the regular expressions example I was given in my last question (thank you!), but I can't seem to make it increment the numbers.