Simple question...

Mark Benard mb at rex.cs.tulane.edu
Wed Dec 13 02:04:36 AEST 1989


In article <3013 at uceng.UC.EDU> schriste at uceng.UC.EDU (Steven V. Christensen) writes:
>Excuse the simple question, but I have a bunch of shar files that
>I want to unshar. Unfortunately all 20+ have the mail headers on them.
>In SED, how would I pipe the files to remove everything before the
>"#!/bin/sh" ? Also, how would I get everything between the "#!/bin/sh"
>and the "exit 0" at the end (for those mailers which append a .sig)?

Try using the unshar utility.  This is exactly what it was designed to
do.  It will strip the header and other leading junk and, if there is
an 'exit 0', it will also correctly strip the .signature.
-- 
Mark Benard
Department of Computer Science     INTERNET & BITNET: mb at cs.tulane.edu
Tulane University                  USENET:   rex!mb
New Orleans, LA 70118



More information about the Comp.unix.questions mailing list