GNU shar utilities: 2.1.2 Splitting output

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

### 2.1.2 Splitting output

`-o prefix`
`--output-prefix=prefix`

  Save the archive to files ``prefix.01'` through ``prefix.nnn'` instead of standard output. This option must be used when the `-l` or the `-L` switches are used.

  When prefix contains any ``%'` character, prefix is then interpreted as a `sprintf` format, which should be able to display a single decimal number. When prefix does not contain such a ``%'` character, the string ``.%02d'` is internally appended.

`-l size`
`--whole-size-limit=size`

  Limit the output file size to size times 1024 bytes but don't split input files. This allows the recipient of the shell archives to unpack them in any order.

`-L size`
`--split-size-limit=size`

  Limit output file size to size times 1024 bytes and split files if necessary. The archives created with this option must be unpacked in the correct order. If the recipient of the shell archives wants to put all of them in a single folder, she shall save them in the correct order for `unshar`, used with option `-e`, to unpack them all at once. See section Invoking the `unshar` program.

  For people used to saving all the shell archives into a single mail folder, care must be taken to save them in the appropriate order. For those having the appropriate tools (like Masanobu Umeda's `rmailsort` package for GNU Emacs), shell archives can be saved in any order, then sorted by increasing date (or send time) before massive unpacking.

This document was generated by Bruce Korb on July, 24 2005 using texi2html 1.76.