bc Command in Linux with Example
bc is a command line basic calculator. bc is typically used as either a mathematical scripting language or as an interactive mathematical shell.
Doing arithmetic calculation use bc as below.
bc can be used with echo command
Addition$ echo "3+5" | bc
Substraction$ echo "15-3" | bc