Command-line Knowledge Base

bc (basic calculator)

Addition
$ echo '2+2' |bc
4
Division
$ echo 'scale=2; 38/42' |bc
.90
NULL