*BSD News Article 48139


Return to BSD News archive

Path: sserve!euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!scsing.switch.ch!news.belwue.de!fu-berlin.de!julia.physik.fu-berlin.DE!not-for-mail
From: graichen@julia.physik.fu-berlin.de (Thomas Graichen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: File Cut for a binary file
Date: 8 Aug 1995 06:41:02 GMT
Organization: Freie Universitaet Berlin
Lines: 34
Distribution: world
Message-ID: <4070tu$p56@fu-berlin.de>
References: <RPANCHOL.95Aug6204025@westphal.ch.intel.com> <guru.807868359@thias>
NNTP-Posting-Host: julia.physik.fu-berlin.de (130.133.3.235)
X-Access: 16 17 18
X-Newsreader: TIN [version 1.2 PL2]

Matthias Apitz (matthias@eikon.e-technik.tu-muenchen.de) wrote:
: rpanchol@westphal.ch.intel.com (Ranju Pancholi -FT-~) writes:

: >I wish to find out if there exists routines to
: >cut a binary file ( around 20 Meg ) into smaller
: >segments of a specified size AND after transportation
: >to another location JOIN them back into the original
: >binary file ?

: dd if=your_file of=aaa count=2000	(BTW: 2000*512 byte)
: dd if=your_file of=bbb skip=2000 count=2000
: dd if=your_file of=ccc skip=4000 count=2000
: 	....

or more simpler:

  split -b 1000k file part.

this will give you part.aa part.ab part.ac ... of each 1000kbytes which you
may also cat together

  cat part.a* >> file (or cat part.* if it goes to part.b* etc)

t

p.s.: this is the way the FreeBSD distribution is made
 _______________________________________________________||_____________________
                                                  __||
 Perfection is reached, not when there is no  __||       thomas graichen
 longer anything to add, but when there   __||      freie universitaet berlin
 is no longer anything to take away   __||              fachbereich physik
                                  __||
 - Antoine de Saint-Exupery - __||
 ___________________________||____email: graichen@omega.physik.fu-berlin.de____