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 :: how to install openvpn connect on ubuntu 20.04 
Shell :: removing letstencrypt from domain 
Shell :: clone github repository mac terminal 
Shell :: ubuntu create bootable usb from iso command line 
Shell :: git abandon untracked files 
Shell :: change desktop icon size ubuntu 
Shell :: open folder from terminal ubuntu 
Shell :: get ip address linux 
Shell :: symbolic link wsl mnt 
Shell :: INSTALL gedit on kali linux 
Shell :: update ruby version ubuntu 
Shell :: how install hub on ubuntu 
Shell :: cisco anyconnect download for ubuntu 18.04 
Shell :: install old firefox version ubuntu 
Shell :: oh my zsh git 
Shell :: install pip ubuntu 
Shell :: git credentials store with timeout 
Shell :: install docker debian 
Shell :: stop linux service 
Shell :: Could not extract RVM sources 
Shell :: git fetch upstream from master 
Shell :: debian 10 install jenkins 
Shell :: untrack lfs file 
Shell :: sed remove until first occurrence 
Shell :: setup cron job 
Shell :: command to install strongswan 
Shell :: how to pull remote changes to local branch 
Shell :: install beego ubuntu 
Shell :: laravel install valet 
Shell :: Endpoint Security VPN build 986000724 is already installed on this computer. 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =