Bash script: specify bc output number format
- by Andrey Kazak
Greetings!
I uses b? to make some calculations in my script. For example:
bc
scale=6
1/2
.500000
For further usage in my script I need "0.500000" insted of ".500000".
Could you help me please to configure bc output number format for my case?