Path: utzoo!utgpu!water!watmath!clyde!burl!codas!ufcsv!gatech!mcnc!uvaarpa!mer6g From: mer6g@uvaarpa.virginia.edu (Marc E. Rouleau) Newsgroups: comp.sources.d Subject: Re: Suggestion for shar file posting Message-ID: <4@uvaarpa.virginia.edu> Date: 24 Jan 88 15:56:27 GMT References: <661@silver.bacs.indiana.edu> Reply-To: mer6g@uvaarpa.Virginia.EDU.UUCP (Marc E. Rouleau) Distribution: na Organization: University of Virginia, Charlottesville Lines: 17 In article <661@silver.bacs.indiana.edu> creps@silver.UUCP (Steve Creps) writes: > > [ a suggestion about making shar file postings easily unpackable by prepending > a # sign to each description/comment line at the beginning ] > If you want to unpack the file "someprog.sh", for example, sed -n '/^#/,$p' someprog.sh | /bin/sh will do the trick. If you want to unpack a bunch of files, you can use the following: for i in someprog??.sh # for example do sed -n '/^#/,$p' $i | /bin/sh done