title: Splitting bulk text file every n line
body: <p>I have a folder that contains multiple text files. I'm trying to split all text files at 10000 line per file while keeping the base file name <code>i.e. if filename1.txt contains 20000 lines the output will be filename1-1.txt (10000 lines) and filename1-2.txt (10000 lines).</code></p>
  
  <p>I tried to use <code>split -10000 filename1.txt</code> but this is not keeping the base filename and i have to repeat the command for each text file in the folder. I also tried doing <code>for f in *.txt; do split -10000 $f.txt; done</code>. This didn't work too.</p>
  
  <p>Any idea how can i do this? Thanks. </p>