title: Issue with a Bash loop that uses an integer
body: <p>So I looked up the examples of a while loop and put the script together as so and still am having issues. If I was to guess I would say it with the arithmetic part of the bc function.</p>
  
  <p>I want the loop to run until I hit a thousand and then count how many times it ran. I am not to the counting part of the script yet as I am still just trying to get it to run (yes I know awk would be easier).</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>#!/bin/bash
  total=120 #this will be a variable that is read in from a menu but 120 is ok for now
  while [ $total -lt 1000000 ]
  do
  echo $total
  total=$(bc&lt;&lt;&lt;"scale=2;$total +  $total * .1") #I don't know if I have to use "let" before total but it did not make a difference.
  done.
  </code></pre>
  
  <p>I am getting an error with the line that starts with "total" but the structure of the command seems to fit all the examples I could find. What gives?</p>