I need to split files into guaranteed number of buckets. The size do not have to be equal.
Here is my logic
count = wc -l filename
split_count = (count)/4
split -l split_count filename core_
Sometimes if I change the numerate of 4 to another number it gives me N+1 number of buckets. Is there a better way to to create exactly N buckets?