I have an input flat file which has "CODENO" in column 1 to6 and in the next line a corresponding "LEVEL" in column 1 to 5.
Sample entries in PS file is like:
CODENO 1234567
LEVEL A
CODENO 2345906
LEVEL B
CODENO 0987567
LEVEL A
I need to fetch all those "CODENO" for which LEVEL should be "A" in the next line. Is this possible through SORT?
Here the two fields which are to be checked dont exist in the same line.
Please suggest?