Men are 1's and women are 0's. That's as far as I can count. I guess that makes men odd and women even. This would probably fit in with the "Men are from Mars, Women are from Venus" thing but I haven't read that book. For proof of the answer above I give you this -
$ cat whichone.awk
#! /bin/awk -f
{ if ($1 == "0") {
print "woman";
} else if ($1 == "1") {
print "man";
} else {
print "Boy George";
}
}
And here's a data file to use -
$ cat data.txt
0
1
0
1
1
0
0
1
0
0
1
7
You can't argue with the code.
No comments:
Post a Comment