I have a problem and I dont know why my code doesn't work
the code:
prot="abc"
awk '{
if ( $1 == $prot )
print $2
}' file.txt
but when I change my code to this it works as it was intented to work
awk '{
if ( $1 == "abc" )
print $2
}' file.txt
Why is that happening?