Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
arithmetic operation in bash
spinalfrontier
Programming language:
Shell/Bash
2021-05-29 15:45:32
0
Q:
arithmetic operation in bash
user12132
Code:
Shell/Bash
2021-01-27 22:31:56
#!/bin/bash x=5 y=10 ans=$(( x + y )) echo "$x + $y = $ans"
0
Related
how to perform mathematical operations in shell script
using regex in bash conditional statement
bash float operations
bash float operation
bash float division
bash equivalent of /?
New to Communities?
Join the community