title: select multiple lines using the linux command sed
body: <p>I have an example [file] that I want to Grab lines 3-6 and lines 11 - 13 then sort with a one line command and save it as 3_6-11_13. These are the commands I have used thus far but I haven't gotten the desired output:</p>
  
  <pre><code>sed -n '/3/,/6/p'/11/,/13/p file_1 &gt; file_2 | sort -k 2 &gt; file_2  &amp; sed -n 3,6,11,13p file_1 &gt; file_2 | sort -k 2 file_2.
  </code></pre>
  
  <p>Is there a better way to shorten this. I have thought about using awk but have I stayed with sed so far.</p>