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 To: "M. J. Everitt (m DOT j DOT everitt AT iee DOT org) [via 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: References: <568F9808 DOT 5040808 AT envinsci DOT co DOT uk> <5693D1A8 DOT 2040703 AT iee DOT org> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII 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 Precedence: bulk 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.