1.

How To Use Bc (bash Calculator) In A Shell Script?

Answer»

Use the below Syntax to use BC in shell SCRIPT.

Variable=`ECHOOPTIONS; expression” | bc`.

Use the below Syntax to use bc in shell script.

Variable=`echo “options; expression” | bc`.



Discussion

No Comment Found