title: How to create a script to read a file line by line and concatenate them into a string? (Python or Bash)
body: <p>I am trying to create a script currently that automates a command multiple times. I have a text file containing links to directories/files that is formatted line by line vertically. An example would be: </p>
  
  <pre><code>mv (X) /home/me
  </code></pre>
  
  <p>The X variable would change for every line in the directory/file text document. The script would execute the same command but change X each time. How would I got about doing this? Can someone point me in the right direction?</p>
  
  <p>I appreciate the help!</p>
  
  <p>Thanks a bunch! </p>