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 10x 2GB combined files? I'd like to add it to a script.
I am running script with the commands as:
cat $full/blank/ascii/*/*xyz > $full/blank/ascii/output.txt
split -b 2000m $full/blank/ascii/ouput.txt
But when I run this, it says
line 1: /blank/ascii/output.txt: no such file or directory.
I have the full pathway at the start of the file too. Is it also possible to split a file and send the output to seperate folder?
$full
you are using in your path specifications is undefined (notice the path it reports starts with/blank
?). Perhaps if you posted the script, too, the community might be able to help in debugging it.