I have a table
1 1
1 0
0 1
0 0
I want to print the lines with two sets of selection criteria separated by OR.
Criteria set 1 : (Column 1 >= 1 and Column 2 = 0)
OR
Criteria set 2 : (Column 1 = 0 and Column 2 >= 1)
Expected output is
1 0
0 1
I have written something like this but didn't work
awk '($1>=1 && $2=0)||($1=0 && $2>=1) {print $0}'
What's the problem?
==for comparison, not=which is for assignment.