While nice, this is a somewhat pointless exercise - neither `split` nor `cat` (nor any other program using fopen() or open() and friends) treat their stdin and stdout in any special way, and it's just as safe to use them for "binary" data as it is for "text" data. POSIX OS are not fundamentally broken like MS-DOS and its successors, insofar as they don't differentiate between "text" and "binary" files; it's "binary" all the way, every time.
|