I have this list (maint_tag.lis3):
And I am trying to write a script that will let me search
the list above and if it finds "qamaint" then it will do
a command. I can't seem to figure out the correct syntax
for the if statement. The syntax below is looking for an
exact match of "qamaint" without the rest of the characters
that are specified before it.
for maint_tag in `cat maint_tag.lis3`
if [[ $maint_tag = *qamaint ]]
Does anyone know the correct syntax?