title: Shell script integer input
body: <p>I am having an issue with my script. What I want to do is depending on a integer value entered into the script on runtime, it would iterate through a file conversion split a certain amount of times before completing. The one problem that I foresee is that I will be comparing a string instead of a integer when running through the while loop portion of the script. Here is some of the code.</p>
  
  <pre><code>    GTF="$1"
  SP=$(dirname "$SCRIPT")
  
  echo "Welcome to this script, Please do me a favor and enter the dimensions of the original Geographical Tiff file so I do not crash myself!!"
  
  # Read the x axis max and y axis max so we do not have any errors.
  
  echo "X axis -&gt; "
  read XMAX
  echo "Y axis -&gt; "
  read YMAX
  </code></pre>
  
  <p>the XMAX and the YMAX values need to be integers in the script in order for it to work as intended. Anyone have a solution?</p>
  
  <p>Thanks!</p>