Answers for "bash add two numbers variables"

1

bash sum variable

x = 2
y = 2

echo $((x + y))
Posted by: Guest on October-28-2020
0

bash add all numbers

awk '{ sum += $1 } END { print sum }' file
Posted by: Guest on September-10-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language