I\'m trying to get a next field after matching field using awk.
Is there an option to do that or do I need to scan the record into array then check each field in array a
No need for slowing things down using a loop :)
awk -F1 '/FIELDB2/ {f=NR} f&&NR-1==f' RS="1" file VALUEB2