title: How to concatenate two files (removing the first line of the second file) in a single line of unix command?
body: <p>I am trying to create a new file (say <code>file3</code>) by stacking two files (<code>file1</code> and <code>file2</code>) together. I need the entirety of <code>file1</code> but want to exclude the first row of <code>file2</code>. What I have now is a two step process using <code>head</code> and <code>sed</code>.</p>
  
  <pre><code>cat file1.csv file2.csv &gt; file3.csv
  sed -i 1001d file3.csv
  </code></pre>
  
  <p>The last step requires me to find out the length of <code>file1</code> before removing the line after so that it corresponds to the first line of <code>file2</code>. How do I combine these two lines into a single line of code? I tried this and it failed:</p>
  
  <pre><code>cat file1.csv sed 1d file2.csv &gt; file3.csv
  </code></pre>