.....
elseif is not a keyword in awk, it's just being treated as a variable name
try using this:
if (CRESP==1 && RESP==1) hit++;
if (CRESP==1 && RESP==2) miss++;
if (CRESP==2 && RESP==1) falsealarm++;
if (CRESP==2 && RESP==2) corrrej++;
1 Like
oh, that worked to get the numbers right! thanks!
unfortunately though when it's with the rest of my script it still gives the error Unmatched '. --- i don't get why it works by itself, and the first part of the script works by itself, but when I add in awk it doesn't work anymore?
Can't help much without seeing the script.
Try putting #!/bin/bash -x on the 1st line. -x will echo each command as it's run and may help find the line causing the issue.