<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 2012-07-30, at 7:34 PM, Sean Walberg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Probably not the answer you want to hear now, but dude, you really need to look into puppet or cfengine. Since I know you're stuck with a bunch of different OSes, the latter might be better.<div><br></div><div><a href="http://stackoverflow.com/questions/6744639/sed-awk-remove-lines-from-pattern-to-pattern">http://stackoverflow.com/questions/6744639/sed-awk-remove-lines-from-pattern-to-pattern</a> might also help you with the sed /r, they have an example that does what you want using patterns instead of line numbers.<br>
<div><br></div></div></blockquote><br></div><div>I do need to look into either of those. :)</div><div><br></div><div>In the situation/place I need to use this little gem I have zero control over the hosts but am temporarily granted escalated privileges from time to time. &nbsp;When I'm done with the hosts I will probably be around to support them for a while but in that case my account is supposed to be reverted to a restricted power user.</div><div><br></div><div><span class="Apple-style-span" style="font-size: 12px; ">--&nbsp;</span></div><div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>Sean</div><br class="Apple-interchange-newline"></span></span></span>
</div>
<br></body></html>