Hands-on task
This task is step 5 of the course “Bash: expansions, arrays and quoting”
Arithmetic in the shell
Write a script /root/add.sh that prints the sum of two numeric arguments. For example add.sh 3 4 → 7.
Reference:Arithmetic in bash
What you'll practise:
- bash arithmetic
- $(( ))
- positional parameters
- bash scripts