hello,
how to get it working with variable?
awk '$2 == "astring" {print $1" "$3}' inputfile
so get it working in a script when "astring" is on variable (eg. as $a in a "while read a b c d")
I tried with:
awk '$2 == "$a" {print $1" "$3}' inputfile
but didn;t work.
thank you.
best regards.
how to get it working with variable?
awk '$2 == "astring" {print $1" "$3}' inputfile
so get it working in a script when "astring" is on variable (eg. as $a in a "while read a b c d")
I tried with:
awk '$2 == "$a" {print $1" "$3}' inputfile
but didn;t work.
thank you.
best regards.