Hi i have a variable by counters_new which has few strings, I want to check whether all these given string in the variable counters_new are present in the given file /var/opt/pmconfig/counters.xml I tried:
counters_new= "M806C0, M806C1, M806C2, M806C3, M806C4, M806C5, M806C6, M806C7, M806C8"
if grep -q $(counters_new) "/var/opt/pmconfig/counters.xml";
then
INFO "M806 All Counters found"
else
ERROR "M806 All Counters not found"
endTest FAILED
fi