> How might I split a file into pieces specified by size?

dd(1)

cpue% dd -if /dev/zero -of /tmp/foo -bs 1 -count 1024
1024+0 records in
1024+0 records out
cpue% ls -l /tmp/foo
--rw-rw-r-- M 1106 fst fst 1024 May  7 22:37 /tmp/foo
cpue% dd -if /tmp/foo -of /tmp/foo1 -bs 1 -count 512
512+0 records in
512+0 records out
cpue% dd -if /tmp/foo -of /tmp/foo2 -bs 1 -count 512 -skip 512
512+0 records in
512+0 records out
cpue% ls -l /tmp/foo?
--rw-rw-r-- M 1106 fst fst 512 May  7 22:37 /tmp/foo1
--rw-rw-r-- M 1106 fst fst 512 May  7 22:37 /tmp/foo2


Reply via email to