title: Unix, split file into chunks of max N bytes, keeping complete lines
body: <p>I'd like to split a file into chunks of maximum N bytes, while keeping complete lines.</p>
  
  <p>Something like the following breaks up first and last lines of each chunk on exact byte boundries.</p>
  
  <pre><code>split -b 100m -d data.tsv data.tsv.
  </code></pre>