Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash add all numbers

awk '{ sum += $1 } END { print sum }' file
Comment

bash sum numbers

num1=1232
num2=24 
num3=444
sum=$((num1+num2+num3))
echo $sum # prints 1700
Comment

PREVIOUS NEXT
Code Example
Shell :: copy from remote server 
Shell :: reset certain file git 
Shell :: how to use compress zip cli linux 
Shell :: how to convert back to JSON in powershell 
Shell :: cmd zip folder 
Shell :: ubuntu 18 does not connect to bluetooth earphones 
Shell :: how to remove spaces at end of line linux 
Shell :: merge branch to branch 
Shell :: your repository has no remotes configured to push to 
Shell :: clone github repository mac terminal 
Shell :: how to change the directory in git bash 
Shell :: open folder from terminal ubuntu 
Shell :: How to allow permission to my new github account 
Shell :: change wallpaper ubuntu 
Shell :: centos curl command 
Shell :: download terraform for mac 
Shell :: sleep in linux command 
Shell :: oh my zsh git 
Shell :: setup linux and chrome docker 
Shell :: hobo list services 
Shell :: list file sizes 
Shell :: setup git on windows 
Shell :: linux stress test 
Shell :: python alias 
Shell :: sudo update-alternatives — install 
Shell :: git pull conflict como fazer pull e sobreescrever tudo? 
Shell :: git status 
Shell :: Install Inkscape 1.x manager ubuntu 
Shell :: tsv to csv file bash 
Shell :: android ndk - configure does not recognize androideabi 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =