I want to set a variable in shell to true depending on if certain requirement is met. That requirement is determined by awk.
So here's what I do
$ different=false
$ awk 'if (certain requirements met) {'different=true'}' inputfile
$ if $different; then
print "Different
However, different does not set to true.
PS my certain requirements met is definitely true.
Thank you
awkfor all the test, no need for the extraiftest.