read $_ x for x in $x do ((s+=(x&1)*2-1)) done echo ${s/-}