title: Moving files from 1 directory to other
body: <p>I want to move files from 1 directory to another in UNIX.</p>
  <p>I have file names in a string like <em>&quot;File 1.txt, File 2.txt&quot;</em></p>
  <p>So I want to extract these file names from the string and then archive those to another folder.</p>
  <p>I tried something like this but was not able to implement the entire solution -</p>
  <pre><code>echo &quot;Open Incidents 08-02-2021.csv,Closed Incidents 08-02-2021.csv&quot;  | tr &quot;,&quot; &quot;\n&quot; | sed -e 's/^/&quot;/g' -e 's/$/&quot;/g' | tr &quot;\n&quot; &quot; &quot; | sed 's/ $//'
  </code></pre>
  <p>Output - &quot;Open Incidents 08-02-2021.csv&quot; &quot;Closed Incidents 08-02-2021.csv&quot;</p>
  <p>With this syntax, as you can see the output, i was able to enclose quotes around the file names as there are spaces in the file name and a space between the names, but was not sure, how to pass these to the mv command now to get the files moved to another folder.</p>
  <p>I know we can do this in For loops, but was hoping for a solution without that.</p>
  <p>Any help on this will be appreciated.</p>