Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bc sum command

a=1.25
b=3.49
sum=$(echo "scale=2; "$a"+"$b| bc -l) #scale defines number of decimals
4.74
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu xampp control panel starten 
Shell :: ubuntu vim-plug install 
Shell :: powershell add to env path 
Shell :: install magento 2 command line composer 
Shell :: pytorch for jetson nano 
Shell :: give permission to user in ubuntu 
Shell :: git push to branch 
Shell :: How to import a particular version of uuid 
Shell :: powershell get all file extensions in directory 
Shell :: get wsl version 
Shell :: sudo apt uninstall 
Shell :: is there any difference between git push and git push origin master 
Shell :: git force sync with remote 
Shell :: how to install graphviz jupyter 
Shell :: install strapi 
Shell :: bash adb command not found... on linux 
Shell :: create package in ros2 
Shell :: node-sass run 
Shell :: brew install jenv 
Shell :: install flask auto reload 
Shell :: docker update all images 
Shell :: how to install anything on kali linux 
Shell :: golang 
Shell :: zsh: command not found: npm 
Shell :: python run java jar 
Shell :: pause bash script 
Shell :: show public ip 
Shell :: add job to crontab 
Shell :: git sync branch with master 
Shell :: powershell length of string 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =