Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!wuarchive!rex!mb From: mb@rex.cs.tulane.edu (Mark Benard) Newsgroups: comp.unix.questions Subject: Re: Simple question... Message-ID: <1663@rex.cs.tulane.edu> Date: 12 Dec 89 15:04:36 GMT References: <3013@uceng.UC.EDU> Reply-To: mb@rex.UUCP (Mark Benard) Organization: Computer Science Dept., Tulane Univ., New Orleans, LA Lines: 15 Summary: Expires: Sender: Followup-To: In article <3013@uceng.UC.EDU> schriste@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@cs.tulane.edu Tulane University USENET: rex!mb New Orleans, LA 70118