home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!UB.com!quack!dfox
- From: dfox@quack.sac.ca.us (David Fox)
- Subject: Re: counterpart of 'cat' ?
- Message-ID: <fWzXcWS@quack.sac.ca.us>
- Keywords: cat
- Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
- References: <1fvo7jINN27p@iraul1.ira.uka.de>
- Date: 14 Dec 1992 04:55:59 UTC
- Lines: 51
-
- In article <1fvo7jINN27p@iraul1.ira.uka.de> voss@i43s6.ira.uka.de (Stefan Voss) writes:
- >Hi folks,
- >
- >I'm not sure if this is a FAQ though I read the FAQ-index. I haven't
- >found it there, so I ask
- >
- >What is the Unix counterpart of 'cat' ?
- >
- >I want to cut a large file into several pieces, put these pieces on
- >several disks and finally append them (using 'cat') to get the original
- >file (probably on a hard disk).
-
- Depends how large the file is. There is a command called 'split' that
- will output a file into pieces and you can control either the size of
- each split in terms of bytes or lines. That's useful for smaller files,
- that are (usually) in ascii form, such as when you want to mail a
- uuencoded binary to someone.
-
- If you have a large file - large in the sense that it won't fit on
- a single floppy - then IMHO the appropriate command to use is 'dd'.
- dd has a 'skip' parameter, and you can fairly easily take a large
- file and split it across a series of floppies by incrementing the
- skip parameter by the size of the floppy. In fact I did this not
- too long ago when I wanted a huge tar.Z archive (8 megs) from
- another system put on a series of floppies.
-
- Use something like:
-
- dd if=file.thats.really.big of=/dev/floppy bs=1440K (first)
- dd if=file.thats.really.big of=/dev/floppy bs=1440K skip=1440K (rest)
-
- Increment 'skip' by 1440K (so the third would be 2880K, etc.) for
- each subsequent floppy.
-
- (This assumes the output is a 1.44 meg floppy, and substitute
- /dev/floppy with the proper device entry for your system.)
-
- >Hope this question is not too stupid.
-
- There is no such thing as a stupid question - except for the one
- that remains unasked. :)
-
-
- >Stefan Voss
- >voss@ira.uka.de
- --
- David Fox
- dfox@quack.sac.ca.us
-
-
-
-