bc and cal
20/09/08 20:35 Filed in: Mac
I was getting to know my mac a bit better today, I
had some spare time and was looking for ways to keep
the relationship interesting.
I came across two little terminal utilities that, for me, have a “cool” factor.
bc
bc is a terminal window calculator. Just run bc in a terminal and then plug in what you’d like to calculate. The calculator follows the BODMAS rules of calculation and calculates internal brackets before external ones. Type man bc for more options.
cal
cal by default, displays the current month calendar in the terminal window. Type cal in the terminal window. If you’d prefer the Julian calendar type cal -j. Type man cal for more options.
So if you spend your time in a terminal window, you don’t need to leave it do calendary mathematical things.
I came across two little terminal utilities that, for me, have a “cool” factor.
bc
bc is a terminal window calculator. Just run bc in a terminal and then plug in what you’d like to calculate. The calculator follows the BODMAS rules of calculation and calculates internal brackets before external ones. Type man bc for more options.
cal
cal by default, displays the current month calendar in the terminal window. Type cal in the terminal window. If you’d prefer the Julian calendar type cal -j. Type man cal for more options.
So if you spend your time in a terminal window, you don’t need to leave it do calendary mathematical things.


