On Thu, Feb 2, 2012 at 5:34 PM, Steve Edwards <[email protected]>wrote:
> On Thu, 2 Feb 2012, Kyle Sexton wrote:
>
> Created this function on one of my machines today, thought others might
>> find it useful:
>> freesip() {
>> comm -2 <(seq $2 $3) <(cat $1 | grep ^\\[ | sort | uniq | tr -d \[ | tr
>> -d \]) | grep ^[[:digit:]]
>> }
>>
>
> Shave 4 processes:
>
> freesip()
> {
> comm -2 -3\
> <(seq $2 $3)\
> <(grep ^\\[[[:digit:]] $1 | sort -u | tr -d \[])
> }
>
> --
> Thanks in advance,
> ------------------------------**------------------------------**
> -------------
> Steve Edwards [email protected] Voice: +1-760-468-3867 PST
> Newline Fax: +1-760-731-3000
>
>
Yeah, I didn't really optimize this. Thanks for the tip!
--
Kyle Sexton
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users