Chapter 5
- By using
((
:
#!/bin/bash num=$(( 25 - 8 )) echo $num
- The problem is with the space in the filename. To fix it, put the filename between quotes:
$ rm "my file"
- There is no dollar sign before the parentheses:
#!/bin/bash a=$(( 8 + 4 )) echo $a