title: How to split a multi-gigabyte file into chunks of about 1.5 gigabytes using Linux split?
body: <p>I have a file that can be bigger than 4GB. I am using the linux <code>split</code> command to split it by lines (that's the requirement).
  But after splitting the original file, I want the size of split file to be always less than 2GB. 
  The original file size can vary from 3-5 GB. 
  I want to write some logic for this in my shell script and feed the number of lines into my <code>split</code> command below to keep the split file sizes less than 2 GB.</p>
  
  <pre><code>split -l 100000 -d abc.txt abc
  </code></pre>