Hi,
I have a input file with the following entries:
1one
2two
3three
1four
2five
3six
1seven
1eight
1nine
2ten
The output should be
1one
2two
3three
1four
2five
3six
1nine
2ten
The record that begins with 1 should have the next record to begin with 2 or 3 else reject that record.
The rejected records should be captured in a file and the valid records in another file.