Here's what I want to run in theory
awk 'BEGIN {FS=OFS=","}
{if( $4 != "" || $4 != "Store Number")
print $2}' $file >>out;
Instead I get all records from $file (i.e. no conditions applied)
However, I have checked that the following works:
awk 'BEGIN {FS=OFS=","}
{if( $4 != "")
print $2}' $file >>out;
Tried most combinations of phrasing including !(cond1 || cond2), !~, if((cond1) || (cond2)), but none work. I am running awk in Windows 10 bash.