delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/11/20:18:35

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Tue, 12 Jan 2016 02:15:03 +0100 (CET)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: "M. J. Everitt (m DOT j DOT everitt AT iee DOT org) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] Searching for refdes's having a specific
attribute?
In-Reply-To: <5693D1A8.2040703@iee.org>
Message-ID: <alpine.DEB.2.11.1601111825530.6536@nimbus>
References: <568F9808 DOT 5040808 AT envinsci DOT co DOT uk> <alpine DOT DEB DOT 2 DOT 11 DOT 1601111626180 DOT 4406 AT nimbus> <5693D1A8 DOT 2040703 AT iee DOT org>
User-Agent: Alpine 2.11 (DEB 23 2013-08-11)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 11 Jan 2016, M. J. Everitt (m DOT j DOT everitt AT iee DOT org) [via 
geda-user AT delorie DOT com] wrote:
> I commend your python, but I fear it's beyond the reach of the average 
> user who wants a 2 minute solution!!

I don't know about you, but for me, this is more efficient than putting 
together an awk command line.  Especially considering these are prone to 
subtle errors (remember the first example posted which silently mixes up 
refdes).  Why re-invent the wheel with a general-purpose tool when a 
library is readily available which does exactly what you want?

> Assuming your code does exactly as the OP suggested

If it doesn't, please let me know.

> thankfully you've brought down the several hours of work to get to that 
> point to a miniscule 5 minutes of "copy/paste/execute" :) .

I didn't answer this in detail with the intention to give Matt an easy 
copy/paste answer.  I want to give you a working starting point so you 
know the available tools and can apply them to your own problems.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019