Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to add numbers in linux command line shell

clear
echo Enter 1st number
read a
echo Enter 2nd number
read b
sum=$(( $a + $b ))
 
echo "Sum is: $sum"
Comment

PREVIOUS NEXT
Code Example
Shell :: npmrc file location windows 
Shell :: how to install node dependencies 
Shell :: apt vs homebrew 
Shell :: Could not resolve dependency: peer @angular/common@"^8.0.0" from @ng-bootstrap/ng-bootstrap@5.3.1 
Shell :: git sync branches 
Shell :: how to install pycharm on ubuntu 
Shell :: Replace git master with another branch 
Shell :: bash arguments parsing 
Shell :: vuforia git url 
Shell :: how to set up git in linux terminal 
Shell :: youtube-dl uninstall mac 
Shell :: specific branch clone git 
Shell :: vscode kali linux 
Shell :: centos install specific kernel headers 
Shell :: error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: the remote end hung up unexpectedly 
Shell :: test redis connection 
Shell :: kill localhost port 
Shell :: linux how to check version of package 
Shell :: change macos hostname 
Shell :: git global config location 
Shell :: linux video player 
Shell :: how to get the number of lines in a file 
Shell :: touch in windows 
Shell :: install make 
Shell :: how to install pip2 in kali linux 2021 
Shell :: sudo npm cache clean -f 
Shell :: bluetooth software for linux 
Shell :: Apply .gitignore on an existing repository 
Shell :: command to install express graphql 
Shell :: geopandas install windows 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =