Taking out a similar lines
Moderators: AmigoJack, bbadmin, helios, MudGuard
Taking out a similar lines
Hello,
I am creating a following Index file:
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#1-3
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#2
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#3
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#4-6
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#5
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#6
Is there any way to take out 2nd, 3rd, 5th and 6th lines? Thank you for your comments and suggestions.
I am creating a following Index file:
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#1-3
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#2
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#3
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#4-6
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#5
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#6
Is there any way to take out 2nd, 3rd, 5th and 6th lines? Thank you for your comments and suggestions.
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
I have no idea what you mean.
You are saying that the rule as Bob (quite reasonably) understood it is incorrect. This rule divides the input into groups of 3 lines, starting at the top, and deletes the 2nd and 3rd lines of each group.
Please explain more carefully exactly what you want converted into what and give examples that demonstrate this and show in what way Bob's suggestion doesn't work.
You are saying that the rule as Bob (quite reasonably) understood it is incorrect. This rule divides the input into groups of 3 lines, starting at the top, and deletes the 2nd and 3rd lines of each group.
Please explain more carefully exactly what you want converted into what and give examples that demonstrate this and show in what way Bob's suggestion doesn't work.
OK.
I am creating the INDEX file. I have following list of tables.
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#1
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#2
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#3
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#4
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#5
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#6
Q11N: 1READ/LOOKED PRINTED EDTN OF PBLCTNS Table#11
Q11N: 1READ/LOOKED PRINTED EDTN OF PBLCTNS Table#12
Q11N: 1READ/LOOKED PRINTED EDTN OF PBLCTNS Table#13
Q12: 1NUMBER OF PRINT EDITIONS YOU RD - AA Table#14
Q12: 1NUMBER OF PRINT EDITIONS YOU RD - AA Table#15
Q12: 1NUMBER OF PRINT EDITIONS YOU RD - AA Table#16
Then I have to take out 2nd, 3th, 5th,6th, 12th, 13th, 15th and 16th lines. My final Index files should be like this:
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#1-3
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#4-6
Q11N: 1READ/LOOKED PRINTED EDTN OF PBLCTNS Table#11-13
Q12: 1NUMBER OF PRINT EDITIONS YOU RD - AA Table#14-16
So is there any way to do that? Thanks
I am creating the INDEX file. I have following list of tables.
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#1
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#2
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#3
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#4
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#5
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#6
Q11N: 1READ/LOOKED PRINTED EDTN OF PBLCTNS Table#11
Q11N: 1READ/LOOKED PRINTED EDTN OF PBLCTNS Table#12
Q11N: 1READ/LOOKED PRINTED EDTN OF PBLCTNS Table#13
Q12: 1NUMBER OF PRINT EDITIONS YOU RD - AA Table#14
Q12: 1NUMBER OF PRINT EDITIONS YOU RD - AA Table#15
Q12: 1NUMBER OF PRINT EDITIONS YOU RD - AA Table#16
Then I have to take out 2nd, 3th, 5th,6th, 12th, 13th, 15th and 16th lines. My final Index files should be like this:
Q1N: READ/LOOKED PRINTED EDTN OF PBLCTNS Table#1-3
Q2: NUMBER OF PRINT EDITIONS YOU RD - AA Table#4-6
Q11N: 1READ/LOOKED PRINTED EDTN OF PBLCTNS Table#11-13
Q12: 1NUMBER OF PRINT EDITIONS YOU RD - AA Table#14-16
So is there any way to do that? Thanks
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm