Hi
I have the following file
your Answer = AA
your Answer = AB
your Answer = CD
your Answer = XY
your Answer = DD
to verify all answers I run the following awk
echo "your Answer = AA" | awk '/= AA/{print " passed "}'
echo "your Answer = AA" | awk '/= AB/{print " passed "}'
echo "your Answer = AA" | awk '/= CD/{print " passed "}'
echo "your Answer = AA" | awk '/= XY/{print " passed "}'
echo "your Answer = AA" | awk '/= DD/{print " passed "}'
My question: How to do the same on one awk command in pleace to run 5 awk command?
Like
echo "your Answer = AA" | awk '/= AA|AB|CD|XY|DD/{print " passed "}'