<br><br><div class="gmail_quote">On Thu, Feb 2, 2012 at 5:34 PM, Steve Edwards <span dir="ltr"><<a href="mailto:asterisk.org@sedwards.com">asterisk.org@sedwards.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, 2 Feb 2012, Kyle Sexton wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Created this function on one of my machines today, thought others might find it useful:<br>
freesip() {<br>
comm -2 <(seq $2 $3) <(cat $1 | grep ^\\[ | sort | uniq | tr -d \[ | tr -d \]) | grep ^[[:digit:]]<br>
}<br>
</blockquote>
<br></div>
Shave 4 processes:<br>
<br>
freesip()<br>
{<br>
comm -2 -3\<br>
<(seq $2 $3)\<br>
<(grep ^\\[[[:digit:]] $1 | sort -u | tr -d \[])<br>
}<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Thanks in advance,<br>
------------------------------<u></u>------------------------------<u></u>-------------<br>
Steve Edwards <a href="mailto:sedwards@sedwards.com" target="_blank">sedwards@sedwards.com</a> Voice: <a href="tel:%2B1-760-468-3867" value="+17604683867" target="_blank">+1-760-468-3867</a> PST<br>
Newline Fax: <a href="tel:%2B1-760-731-3000" value="+17607313000" target="_blank">+1-760-731-3000</a><br>
<br></font></span></blockquote></div><br clear="all"><div><div>Yeah, I didn't really optimize this. Thanks for the tip!</div></div><div><br></div>-- <br>Kyle Sexton<br>