prevent globbing and word splitting
$ in arithmetic expansions are useless
backticks are deprecated
removed echo -n calls
prevented globbing and word splitting
backticks are deprecated
removed useless cat calls