title: Iterating over user input
body: <p>I have a bash script similar to this:</p>
  
  <pre><code>echo Enter a sentence
  read line
  for $x in $line ; do
  echo $x
  done
  </code></pre>
  
  <p>However, it only echos the entire input and not each word in the input as intended. Why is that? And is there a way to get around that while not knowing the number of words to be entered, using a for loop, and preferably not using the read -a option, because I know how to make that work but I don't believe it meets the requirements that've been imposed.</p>
  
  <p>Thanks
  OSFTW</p>