Unix and Shell Programming - CS206
Aug-Dec, 2011. For 2010-2014 Batch.
Visit My Professional Blog
Thursday, October 20, 2011
How to use Binary Calculator (bc) in scripts
The script below, performs 22 / 7, using bc with scale = 5
Click here to download
bc can also be used in the scripts, to convert a number from decimal to binary (obase=2)
Click here to download
Newer Post
Older Post
Home
Unix and Shell Programming - Notes