title: Shell Script: Read line in file
body: <p>I have a file <strong>paths.txt</strong>: </p>
  
  <pre><code>/my/path/Origin/.:your/path/Destiny/.
  /my/path/Origin2/.:your/path/Destiny2/.
  /...
  /...
  </code></pre>
  
  <p>I need a Script <strong>CopyPaste.sh</strong> using file paths.txt to copy all files in OriginX to DestinyX</p>
  
  <p>Something like that:</p>
  
  <pre><code> #!/bin/sh
  
  while read line
  do
          var= $line | cut --d=":" -f1
          car= $line | cut --d=":" -f2
          cp -r var car
  
  done &lt; "paths.txt"
  </code></pre>