Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/3/84; site security.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!bbnccv!bbncca!linus!security!jjg From: jjg@security.UUCP (Jeff Glass) Newsgroups: net.sources Subject: another version of unshar Message-ID: <953@security.UUCP> Date: Fri, 23-Aug-85 10:30:07 EDT Article-I.D.: security.953 Posted: Fri Aug 23 10:30:07 1985 Date-Received: Sun, 25-Aug-85 01:23:57 EDT References: <318@luke.UUCP> <6589@boring.UUCP> Reply-To: jjg@security.UUCP (Jeff Glass) Distribution: net Organization: MITRE Corp., Bedford, Ma. Lines: 11 Summary: this version of unshar is somewhat smarter, in that it looks for a line that begins with one of the comment characters ( "#" and ":" ) or a "cut here" line. ---------- cut here ---------- #! /bin/sh sed -e "/^#/b copy" -e "/^:/b copy" -e "/^--*[ ]*[Cc][Uu][Tt]/b comment" \ -e d -e :comment -e "s/^./#/" -e :copy -e n -e "b copy" ${1-} | /bin/sh -- security!jjg@mitre-bedford.ARPA (MIL) {allegra,ihnp4,utzoo,philabs,uw-beaver}!linus!security!jjg (UUCP)