Issues doing simple math in Bash script

view full story

http://www.linuxquestions.org – I've been trying to find the issue for the last couple of days now and I'm apparently not processing this very well. It seems as though everytime I get an error, I fix that one and another one pops up. The only thing I can think of is that there's something I'm overlooking that would set it all straight. As stupid as the script looks, it's slightly functional for me but it's also an educational experience. Please don't suggest python or perl as a fix. There has to be a way to do it within bash. At the time of this writing, here is the script: $downloadop is the output f (HowTos)