If I want to compare column 6(Comma delimited) with shell variable. But it's not returning anything when I try to compare.
awk -F ',' '$6 == "$grep_value" {print $5}' file ## does not return value
awk -F ',' '$6 == "abc" {print $5}' file ## returns value
When i try to awk values, it's returning values. I referred following links, but it did't help. awk print column $3 if $2==a specific value? How to use shell variables in an awk script