[TUHS] Traditional method of dealing with embedded shar files

Random832 random832 at fastmail.com
Sat Jul 25 04:29:21 AEST 2020


On Mon, Jul 20, 2020, at 14:07, Will Senn wrote:
> On 7/20/20 12:52 PM, Clem Cole wrote:
> > 
> > 
> > On Mon, Jul 20, 2020 at 1:25 PM Will Senn <will.senn at gmail.com> wrote:
> >> My questions for y'all are how would you go about doing this? Use vi to delete everything through the ==== cut here line? 
> > Yep
> Nice, seemed easy enough to me, but I was expecting real Unix folks use 
> sed | awk | indent type answers. 

For whatever it's worth, you can do the exact same thing as vi with sed in this case: 1,/====/d

I wasn't there, so I can't say if this was done in practice or if there was even enough uniformity in the markers for it to be reliable in theory [perhaps /^#!/,$p ?]


More information about the TUHS mailing list