unshar

A Unix utility that removes e-mail and news header lines from its input, and feeds the remainder (which is presumed to be a shar file) to /bin/sh to unpack it. unshar is designed for unpacking archives directly from the news or mail systems simply by piping a message into it.