Instead of having a module and a dozen near-identical scripts, write a single script, and make a dozen symlinks to it. You can examine $0 to find out which name was used to call the script and act accordingly.
Isn't Unix nice? :-)
A lot of utilities use this idea in practice. zcat being symlinked to gzip is the first thing that came to mind, but a look at your /usr/bin will likely reveal dozens such symlinks. In fact, Busybox hides nearly an entire Unix toolkit inside a single binary for maximum space efficiency in embedded Linux systems.
Makeshifts last the longest.
In reply to Re: Command Line Google, AskJeeves, Dictionary, and Thesaurus
by Aristotle
in thread Command Line Google, AskJeeves, Dictionary, and Thesaurus
by kesterkester
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |