can someone please explain to me what i'm doing wrong with this code:
WELT=$(awk '(($1 ~ "^${caag}$") || ($2 ~ "^${caag}$"))' /tmp/Compare.TEXT)
when run from the command line, it works. but it seems to be having a problem doing the comparison when variables are involved.
i tested from the command line and assigned a value to "caag", it wouldn't work.
but when i just replaced caag on the command line with the actual value, it passes.
i've been stalled all day by this. any help will be much appreciated.