title: writing the output from split command to a separate directory
body: <p>So I'm using split command to split a file into separate lines and save them into a different directory than the current directory which I'm executing the command. </p>
  
  <pre><code>split -l 1 -d -a 5 --additional-suffix=.txt file1.dat file toindex/
  </code></pre>
  
  <p>so i want the output files to be written inside <code>toindex/</code>, but this gives me a error saying:
   <code>split: extra operand ‘toindex/’</code>. 
  This works fine if I don't have the output dir path or don't have the prefix ("file"). </p>
  
  <p>How do I get this to work? I need to have the prefix as well as the additional-suffix. </p>