title: Error while using while read; do grep
body: <p>I am using this command</p>
  
  <pre><code>cat text.csv | while read a ; do grep $a text1.csv &gt;&gt; text2.csv; done
  </code></pre>
  
  <p>text.csv has file names with full path. The file names are having spaces.</p>
  
  <p>Example: C:\Users\Downloads\File Name.txt</p>
  
  <p>text1.csv contains logs showing user id and the file name with full path. </p>
  
  <p>Example: MyName,C:\Users\Downloads\File Name.txt</p>
  
  <p>When I run the command, I get and error </p>
  
  <pre><code>grep: Name: No such file or Directory
  </code></pre>
  
  <p>I know that the error is because of the spaces in the file name. I would like to know how can I remove this error. </p>