Skip to main content
1 of 5
AJOS
  • 3
  • 2

Combining .txt files but limiting the combined file into sized chunks

I have a batch of .txt files I want to combine so I can import into another program. This program is limited by 2gb data packets at a time but the total of the files will be 20gb.

Is it possible to combine the .txt files, limiting to 2gb each time, giving a total of 10 x 2gb combined files? I'd like to add it to a script.

i am using the Cat* .txt > (file) name and then split -b 2000m at the moment via cmds manually.

thanks for any help

AJOS
  • 3
  • 2