multiplexor2.sh 209 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 #!/bin/bash INPUT="$1" A=`echo "$INPUT" | cut -d',' -f 1` B=`echo "$INPUT" | cut -d',' -f 2` S=`echo "$INPUT" | cut -d',' -f 3` N1=`./not $S,` N2=`./and $N1,$A,` N3=`./and $S,$B,` Z=`./or $N2,$N3,` echo $Z