X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com To: gEDA User List From: "Matt Rhys-Roberts (matt DOT rhys-roberts AT envinsci DOT co DOT uk) [via geda-user AT delorie DOT com]" Subject: [geda-user] Searching for refdes's having a specific attribute? Organization: Envin Scientific Ltd. Message-ID: <568F9808.5040808@envinsci.co.uk> Date: Fri, 8 Jan 2016 11:05:44 +0000 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: geda-user AT delorie DOT com How could I search a directory of .sch schematic sheets for components that contain a specific attribute, e.g. OrderCode=1234567, please? Basically, I need to fit components manually to a board, one specific type at a time, to keep production neat. So I need to list them by unique order code, ideally. The search function would have to know how to navigate to and fro within each component's curly brackets in the .sch file, to find which component that attribute value belongs to. So I guess a perl script might already exist for this? Gattrib doesn't let me sort by column, which would have been useful for this. Maybe there's an obvious and easier way to do what I'm trying to do... Many thanks, Matt.