Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site watnot.UUCP
Path: utzoo!watmath!watnot!cagordon
From: cagordon@watnot.UUCP (Chris A. Gordon)
Newsgroups: net.sources
Subject: Re: unshar (Re: date+ - add specified time to date)
Message-ID: <11290@watnot.UUCP>
Date: Wed, 17-Jul-85 20:00:31 EDT
Article-I.D.: watnot.11290
Posted: Wed Jul 17 20:00:31 1985
Date-Received: Thu, 18-Jul-85 03:48:54 EDT
References: <12600026@uiucdcs> <6511@boring.UUCP>
Reply-To: cagordon@watnot.UUCP (Chris A. Gordon)
Organization: U of Waterloo, Ontario
Lines: 12
Summary: 

In article <6511@boring.UUCP> ken@mcvax.UUCP (Ken Yap) writes:
># unshar - pipe shar part of input through sh
># Ignore lines before first "#" comment starting in first column.
># Input is either $1 or stdin.
>sed -n '/^#/,$ p' ${1-} | sh
>
>Good stuff. This is even better.
>sed -n '/^#/,$ p' ${1-} | exec sh

Or, if you are using /bin/csh, and wish to save a small amount of filespace:
alias unshar "sed -n '/^#/,$ p' \!* | sh"  (or  | exec sh  whatever you wish)
placed in the login file will set up an alias which works just as well.