Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Doing Binary Arithmetic, What tools are available
jem
post Apr 25 2004, 05:56 PM
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?
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
jem
post Apr 25 2004, 06:13 PM
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.
Go to the top of the page
 
+Quote Post

Posts in this topic
- jem   Doing Binary Arithmetic   Apr 25 2004, 05:56 PM
- - jem   http://www.freeos.com/guides/lsst/ch04sec14.html u...   Apr 25 2004, 06:13 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 10th December 2017 - 07:04 PM