I have an awk line :
awk -F'/|//' '{for(i=1;i<=NF;i++) if($i=="CUST")break;print $(i)}'
I want the CUST
to be case insensitive and I am using ($i==CUST)
because the file contains words like CUSTOMER
, which should not get matched.
I tried using Character class like: if($i=="[Cc][Uu][Ss][Tt]")
but that throws an error.