I have a file which has lines in it like:
B00563A
YES 7
B00507C
NO 7
B00507B
YES 7
B00507A
NO 7
B00216C
YES 7
B00216B
NO 7
I am on Solaris 8 so I have been using nawk and it has worked quite well.
I need to send to a new file called beaster1 the following items. If the above lines have a YES in it, send only the line above it to the new file beaster1. So the output would be similiar to the below example.
B00563A
B00507B
B00216C
Thanks for the help! I need this pretty rapidly, sorry for the rush, BeasteR
B00563A
YES 7
B00507C
NO 7
B00507B
YES 7
B00507A
NO 7
B00216C
YES 7
B00216B
NO 7
I am on Solaris 8 so I have been using nawk and it has worked quite well.
I need to send to a new file called beaster1 the following items. If the above lines have a YES in it, send only the line above it to the new file beaster1. So the output would be similiar to the below example.
B00563A
B00507B
B00216C
Thanks for the help! I need this pretty rapidly, sorry for the rush, BeasteR