Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I've created a script that prints an output like:
@Participants: Tom
@ID: Tom
@Participants: Cathy, Peter
@ID: Cathy
@ID: Peter
@Participants: Bart, Karen, Lizzy
@ID: Bart
@ID: Karen
@ID: Lizzy
I want to add numbers before a line that matches @Participants so that my output becomes:
1. @Participants: Tom
@ID: Tom
2. @Participants: Cathy, Peter
@ID: Cathy
@ID: Peter
3. @Participants: Bart, Karen, Lizzy
@ID: Bart
@ID: Karen
@ID: Lizzy
Does anyone know how I should do this? Thanks!
Univ
I've created a script that prints an output like:
@Participants: Tom
@ID: Tom
@Participants: Cathy, Peter
@ID: Cathy
@ID: Peter
@Participants: Bart, Karen, Lizzy
@ID: Bart
@ID: Karen
@ID: Lizzy
I want to add numbers before a line that matches @Participants so that my output becomes:
1. @Participants: Tom
@ID: Tom
2. @Participants: Cathy, Peter
@ID: Cathy
@ID: Peter
3. @Participants: Bart, Karen, Lizzy
@ID: Bart
@ID: Karen
@ID: Lizzy
Does anyone know how I should do this? Thanks!
Univ