[TUHS] Traditional method of dealing with embedded shar files

Will Senn will.senn at gmail.com
Tue Jul 21 04:11:11 AEST 2020


On 7/20/20 12:55 PM, Warner Losh wrote:
> Will said:
>
>     My questions for y'all are how would you go about doing this? Use
>     vi to delete everything through the ==== cut here line? Use some
>     combination of standard unix tools to chop it up? What was your
>     workflow for patching up the system using these files?
>
>
> sed -e '1,/---cut here---/d' < $patch | sh -x
>
> is what I use, but there's a wide variety of 'cut here' lines in the 
> 2.11BSD patches, so I have had to taylor to each patch.
Thanks, this is nice and simple. I'll be on the lookout for the differences.

Will
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200720/ef773aea/attachment.htm>


More information about the TUHS mailing list