i'm trying to chop the headerfile off of a bunch of images.
the image data is 524288 bytes, with the headers varying in size (usually around 5k).
the simple way to do it would be:
tail -c-524288 filename | cat >newfile
but, it ends up with a file that's about half as large as I want it to be, I'm assuming due to a buffer limit on the pipe.
Is there a better way to go about this, or how do I change the buffer limit on pipe (and is that safe to do?)
the image data is 524288 bytes, with the headers varying in size (usually around 5k).
the simple way to do it would be:
tail -c-524288 filename | cat >newfile
but, it ends up with a file that's about half as large as I want it to be, I'm assuming due to a buffer limit on the pipe.
Is there a better way to go about this, or how do I change the buffer limit on pipe (and is that safe to do?)