I want to implement the simplest example. There are two numbers in binary system 0011 and 0101 . I want to apply the operation "KILLED OR" to them. The result is displayed as a binary number. It should be 0111 , I get 73.
Why is that?
#!/bin/bash AA=0011 BB=0101 CC=$(($AA | $BB)) echo "Result: " $CC
bc- Mike