binary file splitting

binary file splitting

Post by Doug Gw » Sat, 20 Jul 1991 06:10:16




Quote:>Is there a tool that splits non-text files into files with a specified
>number of bytes?

I don't think there is a standard one specifically limited to that purpose,
but you can certainly use "dd" with appropriate block-size, count, and skip
parameters.  That's usually what I do.
 
 
 

1. binary file splitting


Here's a shell script I use:

: chunk - breakup a file into SIZE chunks called OUT01, OUT02, ...
[ ! "$1" ] && echo "Usage: $0 inputfile [out [chunk-size]]"
IN=$1
OUT=${2:-chunk}
SIZE=${3:-100000}
N=0
while :
do
        T=`expr $N + 1`
        [ $T -le 9 ] && T=0$T
        dd count=1 bs=$SIZE if=$IN skip=$N of=$OUT$T
        [ ! -s $OUT$T ] && rm $OUT$T && break
        N=`expr $N + 1`
done
l $OUT* $IN
--

2. squid and e-mail

3. Split binary files into 2 files of different size (or eliminate some bytes from the start)

4. directory becomes device???

5. Splitting binary files under solaris 2.4?

6. Abit BE6 and UDMA, yet?

7. fsplit and fmerge - split binary files into floppy-size pieces

8. GNAT 3.01 for Linux ELF - Interest

9. Splitting a binary file into chunks

10. chop 5.0 - split (binary) files into pieces

11. How to split a large binary file?

12. Splitting a binary file into parts

13. HELP: How to split a large binary file?????