title: Unix cat function (cat * > merged.txt) in Python?
body: <p>Is there a way to use the cat function from Unix in Python or something similar once a directory has been established ? I want to merge files_1-3 together into merged.txt</p>
  
  <p>I would usually just find the directory in Unix and then run</p>
  
  <pre><code>cat * &gt; merged.txt 
  
  file_1.txt
  file_2.txt
  file_3.txt
  
  merged.txt
  </code></pre>