Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bc add

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 :: xamp start ubuntu 
Shell :: How to create or add a user on linux 
Shell :: script to kill a process in windows 
Shell :: how to tar and gzip a file in linux 
Shell :: docker compose install debian 
Shell :: mac terminal restart 
Shell :: git push origin master 
Shell :: how to run a command on startup in linux ubuntu or centos 
Shell :: git increase buffer size 
Shell :: bash check if file empty 
Shell :: disable aslr 
Shell :: IF NOT DIR BASH 
Shell :: sed add line after match 
Shell :: reset bash_profile 
Shell :: add current directory to path 
Shell :: bash list processes mac 
Shell :: run container and rm 
Shell :: command not found pipenv bash 
Shell :: force pull git 
Shell :: php.ini ubuntu 
Shell :: delete folder terminal mac 
Shell :: how to save windows lock screen images 
Shell :: set zsh as default linux 
Shell :: .gitignore is not ignoring directories 
Shell :: windows service start 
Shell :: gitbash shortcut to clear the terminal 
Shell :: remove users from linux 
Shell :: ubuntu disable ssh root 
Shell :: get disk partitions linux 
Shell :: set cuda path 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =