I want to split a file into 'n' chunks, the suffixes should be of 'a' length and should using numeric suffixes starting from number 'd'.
e.g. n = 10, a=4, d=5, As all options look correct and I tried the below
split -n10 -a4 -d5 somefile
split: cannot split in more than one way
Try 'split --help' for more information.
It gives the above error. The options look fine to me as per the man page
-a, --suffix-length=N
generate suffixes of length N (default 2)
-d, --numeric-suffixes[=FROM]
use numeric suffixes instead of alphabetic; FROM changes the start value (default 0)
-n, --number=CHUNKS
generate CHUNKS output files; see explanation below
What could be the reason for the error? How can I achieve the stated goal?
d
andb
– steeldriver Aug 26 '15 at 20:11n=10
) and have each one only 5 bytes long (b=5
). – Chris Davies Aug 26 '15 at 20:13split (GNU coreutils) 8.23
on debian 8 ) – FelixJN Aug 26 '15 at 20:23