sum of array elements bash
read -a array
tot=0
for i in ${array[@]}; do
let tot+=$i
done
echo "Total: $tot"
Also in C++:
- git diff between one file
- firewall linux
- how to install aplay in ubuntu
- how to activate administrator account in windows 10 command prompt
- linux check if screen is running
- e package 'oracle-java8-installer' has no installation candidate ubuntu 16.04
- add ssh key to gitlab
- ubuntu use pip as pip3
- start shell on rosetta 2
- how to see ip in linux
- ubuntu settings missing
- styled components props typescript
- sed delete line with matching pattern
- how to install expo cli on windows
- install pip for python 2.7 linux
- ubuntu generate ssh key
- best screen capture software for linux u
- approle hashicorp vault
- extract from tar gz into folder
- npm install composition apiu
- sudo apt-get install podman
- ubuntu power saving
- make a symlink windows
- browse for folder powershell