HF RL Explorer

Task: Split a File into Equal Parts Without Breaking Lines

Task: Split a File into Equal Parts Without Breaking Lines: a task in Terminal-Lego-15k (Harbor dataset). You need to create a bash script that splits a text file into a specified number of approximately equal parts, while ensuring that no individual lines are broken across parts. Each output file…

The task

You need to create a bash script that splits a text file into a specified number of approximately equal parts, while ensuring that no individual lines are broken across parts. Each output file should contain only complete lines.

Part of PrimeIntellect/Terminal-Lego-15k.