title: Add prefix to each word of each line in bash
body: <p>I have a variable called deps:</p>
  
  <pre><code>deps='word1 word2'
  </code></pre>
  
  <p>I want to add a prefix to each word of the variable.</p>
  
  <p>I tried with:</p>
  
  <pre><code>echo $deps | while read word do \ echo "prefix-$word" \ done
  </code></pre>
  
  <p>but i get:</p>
  
  <blockquote>
    <p>bash: syntax error near unexpected token `done'</p>
  </blockquote>
  
  <p>any help? thanks</p>