jem
Apr 25 2004, 05:56 PM
Hi All
I want to AND two binary numbers (eg 1001011 AND 1110010 to get 1000010). Are there any tools available to do this from a shell script?
jem
Apr 25 2004, 06:13 PM
http://www.freeos.com/guides/lsst/ch04sec14.html uses "bc".
bc can calculate with binary numbers using the -ibase=2 switch but it can't do a logical AND on them.