Linux Calculator – BC

I was looking to do some quick calculations from the Linux console today and discovered ‘bc‘.

Example Command:

  • echo ‘1028 * 8’ | bc

bc.png

I can see how this command could be useful in a shell script!!