Recently I've encountered a strange behavioral problem with awk
say I have two files one with blank file & the another is with populated data
so let me apply a simple unmatched code
awk -v var=0 'NR==FNR{a[$var]++;next} !($var in a)' file1 file2
say
file1
&
file 2
a
b
v
it will return blank data where as it is supposed to return all the content in file 2. can someone explain me how to overcome this issue?