title: Cygwin bash: read file word by word
body: <p>I want to read text file word by word. Problem: there are some words containing "/*". Such a word causes script to return files in root directory. I tried:</p>
  
  <pre><code>for word in $(&lt; file)
  do
      printf "[%s]\n" "$word"
  done
  </code></pre>
  
  <p>And several other combinations with echo/cat/etc...
  For this file:</p>
  
  <pre><code>/* example file
  </code></pre>
  
  <p>I get following output:</p>
  
  <pre><code>[/bin]
  [/cygdrive]
  [/Cygwin.bat]
  ...
  [example]
  [file]
  </code></pre>
  
  <p>Should be easy but it's driving me nuts.</p>