subcom – tool to manage subcommands of your executable.


shell (Bourne compatible)

Latest release

Latest code

subcom at buildbucket:


subcom is the tool to determine executable file from sentence-like string. That is used to manage subcommands of your script.

The tool will parse the string:

    $ subcom script command
and will find the executable file, according to command.

subcom allows adding subcommands to some script without its modification, as the script parses command string and determines the subcommand in generic way.


To install subcom into dedicated directory $HOME/rrr/ (default):
    $ ./

That is equal to:

    $ DESTDIR=${HOME}/rrr ./

To install somewhere system-wide:

    $ DESTDIR=/usr/local ./

Do not install directly to real system path like /usr with ./! Use separated directories for self-installed stuff. Install into working system with packages.


Available under ISC License.
Copyright 2020 Random Crew.