# create a file with 65536 bytes of zeros (i.e. 32768 short int zeros): perl -e 'print "\0" x 65536' > zeros.raw # create a file with 32768 short int zeros followed by 32768 short int ones: perl -e 'print pack("s",0) x 32768; print pack("s",1) x 32768' > zeros-ones.raw