![]() |
![]() Advanced DNS Management |
New ZoneEdit. New Managment. FREE DNS Is Back Sign Up Now |
![]() |
![]()
Post
#1
|
|
Whats this Lie-nix Thing? ![]() Group: Members Posts: 2 Joined: 25-April 04 Member No.: 2,829 ![]() |
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? |
|
|
![]() |
![]()
Post
#2
|
|
Whats this Lie-nix Thing? ![]() Group: Members Posts: 2 Joined: 25-April 04 Member No.: 2,829 ![]() |
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. |
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 25th April 2018 - 07:29 AM |