I have problem with the following awk syntax
echo " param1 param2 param3 = param1 AA , AB , AC , AD " | awk -F"=" '$2~/AA|AB|AC|AD/{print "passed"}'
the awk print passed , but its not shuld be because after "=" I have param1 and not "AA" or AB" etc
the target of the awk is to print passed only if the string after "=" is AA OR AB OR AC OR AD
and if I have something else after "=" then its not should print passed
how to fix the awk syntax?
lidia