I am trying to verify if I split large file correctly into multiple pieces. As an toy example, I have a file
123456789012 123456789012 123456789012 123456789012 123456789012
This has 64 bytes when stored. When I split this file into six pieces using cut, the resulting files have 15 bytes each:
#!/bin/sh FILENAME="out_sample" cut -c1-2 $FILENAME > a cut -c3-4 $FILENAME > b cut -c5-6 $FILENAME > c cut -c7-8 $FILENAME > d cut -c9-10 $FILENAME > e cut -c11-12 $FILENAME > f
In total it means 6*15=90 bytes. What is the difference of 26 bytes between size of the original file and sum of sizes of the new files? I noticed that
cut appends newline at the end of file, this would probably be 1 byte per file? What about the rest?