/ Published in: Bash

This is a simple wrapper to bc to perform basic calculator duties. with up to 4 decimal place precision. its just one of those things you might find useful. Then again all the os's out there have a gui calc easily ready too.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/bash # save this file to 'c' in your bin dir, # use 'c 7 + 7' or 'c 5 / 3' bc << EOF scale=4 $@ quit EOF
URL: http://www.itsgotto.be/cv.php
Comments
