Sunday, April 19, 2009

18) Doing maths in Unix

To perform calculations in Unix, one can key in "bc" to access the program. Once in the program, just key in the formula (e.g. 3+2).

Alternatively, to perform calculations straight from the command line, key in:

echo "3+2" | bc

No comments:

Post a Comment