I looked a lot of places for this answer, but could not find it. Still learning AWK here, and was just wondering how to print the column number where a match is found.
I want the script to give me the field/column number where regexp match "/1" is found
INPUT
name1 0/0 0/0 0/1 0/0
name2 0/1 0/0 0/0 0/0
name3 1/1 0/0 0/0 0/0
name4 0/0 0/0 0/0 1/1
DESIRED OUTPUT
4
2
2
5