tail -c +$HEADERSIZE <foo
(dd bs=$SIZE1 count=1 of=file1; dd bs=$SIZE2 ...
Reply on news.ycombinator.com