cat-leases script to join leases files

Martin Langhoff martin.langhoff at gmail.com
Mon Apr 14 20:41:28 EDT 2008


On Thu, Apr 10, 2008 at 3:57 PM, Martin Langhoff
<martin.langhoff at gmail.com> wrote:
> Attached you'll find a trivial script to concat-and-sort various lease
>  files. This makes life easier for regional teams that deal with
>  various shipments.
>
>  Usage:
>
>     cat-leases.pl */lease.sig  > all_leases.sig

Ok, the script I posted initially didn't work because the leases file
is in Canonical JSON, not any plain old JSON thing. So here's a python
version using the Canonical JSON libs. I have also attached the
json.py file, which I stole from bitfrost. If you have bitfrost
anywhere in your python path, you won't need this additional json.py .

The usage is the same as above, except that a significant "l" changes to a "y".

cheers,




m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cat-leases.py
Type: text/x-python
Size: 1013 bytes
Desc: not available
URL: <http://lists.laptop.org/pipermail/devel/attachments/20080414/1386647e/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: json.py
Type: text/x-python
Size: 11196 bytes
Desc: not available
URL: <http://lists.laptop.org/pipermail/devel/attachments/20080414/1386647e/attachment-0001.py>


More information about the Devel mailing list