Chapter 5

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

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.5.86