Shell packer

0. Contents

This is the documentation of shellpack-3.1.0.
   1. Purpose
   2. Example
   3. Copying
   4. Downloading

1. Purpose

Give Shellpack lines of text, and shellpack compresses them to a minimal count of command line expressions needed to evaluate to the specified parameters.

2. Example

An example data set:
bisqwit@mist:~/src/shellpack$ grep sfnet ~bisqwit/.snewsrc|head -n 5|sed 's/:.*//'            
sfnet.atk.ohjelmointi
sfnet.atk.ohjelmointi.moderoitu
sfnet.atk.ohjelmointi.alkeet
sfnet.tiede.matematiikka
sfnet.tiede.fysiikka
Compressing:
bisqwit@mist:~/src/shellpack$ grep sfnet ~bisqwit/.snewsrc|head -n 5|sed 's/:.*//'|./shellpack
sfnet.{atk.ohjelmointi{,.alkeet,.moderoitu},tiede.{fys,matemat}iikka}
Testing:
bisqwit@mist:~/src/shellpack$ for s in sfnet.{atk.ohjelmointi{,.alkeet,.moderoitu},tiede.{fys,matemat}iikka};do echo "$s";done
sfnet.atk.ohjelmointi
sfnet.atk.ohjelmointi.alkeet
sfnet.atk.ohjelmointi.moderoitu
sfnet.tiede.fysiikka
sfnet.tiede.matematiikka
So yep, it works. It sorts the input while doing that, too.

3. Copying

shellpack has been written by Joel Yliluoma, a.k.a. Bisqwit,
and is distributed under the following terms:
* No warranty. You are free to modify this source and to
* distribute the modified sources, as long as you keep the
* existing copyright messages intact and as long as you
* remember to add your own copyright markings.
* You are not allowed to distribute the program or modified versions
* of the program without including the source code (or a reference to
* the publicly available source) and this notice with it.

4. Downloading

The official home page of shellpack is at http://iki.fi/bisqwit/source/shellpack.html.
Check there for new versions.

Generated from progdesc.php (last updated: Thu, 28 Sep 2006 16:21:07 +0300)
with docmaker.php (last updated: Sun, 12 Jun 2005 06:08:02 +0300)
at Fri, 29 Sep 2006 01:15:54 +0300