hunp (hackage): hunp is an unpacker tool which does what you mean.  By matching on regular expressions, it automagically calls the right unpacking program for you, e.g. "unrar" for files ending in ".rar", etc.
Keywords: console|program|utils