ehabaziz20012001
Programmer
I have a file like below . The good pages must have 3 conditions :
The pages that containing page total only must have 50 lines.
The pages that containing customer total only must have 53 lines.
The last page of Customer Total should be the last page.
How can I accomplish separating good pages from bad pages using GAWK ?
File :
-------
FFstarting good page1(50 line) Account number : 12500149
..
..
..
Total of page : 5555
FFstarting good page2(50 line) Account number : 12500149
..
..
..
Total of page : 6666
FFstarting good page3(53 line) Account number : 12500149
..
..
..
Total of page : 6666
Total Customer : 999.99
FFstarting BAD page1(Not 50 line) Account number : 12500148
..
..
..
Total of page : 5555
FFstarting BAD page2(Not 50 line) Account number : 12500148
..
..
..
Total of page : 6666
FFstarting BAD page3(Not 53 line) Account number : 12500148
..
..
..
Total of page : 6666
Total Customer : 999.99
The pages that containing page total only must have 50 lines.
The pages that containing customer total only must have 53 lines.
The last page of Customer Total should be the last page.
How can I accomplish separating good pages from bad pages using GAWK ?
File :
-------
FFstarting good page1(50 line) Account number : 12500149
..
..
..
Total of page : 5555
FFstarting good page2(50 line) Account number : 12500149
..
..
..
Total of page : 6666
FFstarting good page3(53 line) Account number : 12500149
..
..
..
Total of page : 6666
Total Customer : 999.99
FFstarting BAD page1(Not 50 line) Account number : 12500148
..
..
..
Total of page : 5555
FFstarting BAD page2(Not 50 line) Account number : 12500148
..
..
..
Total of page : 6666
FFstarting BAD page3(Not 53 line) Account number : 12500148
..
..
..
Total of page : 6666
Total Customer : 999.99