Next Hold Space 37

Shell arithmetic

  • expr only does integers:

           % expr 23 / 7
           3
  • No problem, the GNU shell has a builtin arithmetic operator

    • Which also does only integers:

           % echo $(( 23 / 7 ))
           3

continued...
Next Next