I have data that looks like this:
test AA=bddddbs
result=1
cell AA=bnnndb5
result=2
cell1 BB=bnrrndb
result=3
Please help. Find AA=string.
test AA=bddddbs;result=1
cell AA=bnnndb5;result=2
I am use below command and result fail.
nawk '/AA=/{val=$1;next} {print val,$1}' infile
Using
awkyou can do this: