delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/08/06:17:09

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Message-ID: <568F9AA5.4070402@iee.org>
Date: Fri, 08 Jan 2016 11:16:53 +0000
From: "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>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Searching for refdes's having a specific attribute?
References: <568F9808 DOT 5040808 AT envinsci DOT co DOT uk>
In-Reply-To: <568F9808.5040808@envinsci.co.uk>
X-Provags-ID: V03:K0:sAhzf8OuZoFHL9ltQf23vsOhbXf1k0tRSuM2k/h/OSKuM6GQypH
P3Xm3Xh7pajY4+9keuj6VELpHT8AxxvYiqpiF9MGlo55zR1jRKGC6JB2ASmDm4W0I3WmkkP
eQ2+enRG2sAxv0Pes99uvrIR8kLVx7aGGq3pbwQL3/L4QnufQ3TLH928V3IvKc/STxfGS1x
pulqwbN2ZoTSy4pN/6Mxw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:i5TLcr75dhI=:VPWSLFSq8DDE588pYiNh6l
qQtxtFFN5my4CaqY0h8dTTY0TCCcbieAhAT7WHyblEtEF+mMo/wqeh5F3lPk52VGpFa++oizC
gWDDGxkdl2MgFlXuqPTBG5n81AiIcFT9mUyZ6RqdNKytcCr8yYsnXFAYzoJP6cqSgkMsHsIXX
VNy7M3f2IC5PvtfAoWycvrd+gh7aHn0SmUBza/FL+fyEgSnUBgpseqZ4ZFlbGldlitonDOQGP
skDgBoALoQUXJ3VKAEVNL4NO0YF1+sX9W3niS83GflG8MebbJ25TjisUqP5iMp0VjRokPopoW
61oLoVqHrJNrnUvZee5hH/2VH2U1mk54rOzuaAYqrfsNIUFTztAip6RxKvZEPyvSXkDDrc9j+
Axnum5I42AjtWlVyuc0t+WSM5kfCNc02VNrlFjX0tipaQLT/eB8z1oasI1239NzEOEINJ5QbS
mgAj+JS6E/8NE6avL1FiZBGUG2c8bMNxRL09Jr4nlTRl72luuJLvouZ29zMHais15xBDgxhgP
dk7lYNvoEE3Wn1CmrIO2nyhf7e8DFzMZ3vEg4v1gKima9Ba3rT1pR42JTWKkbOCKDln9pzdpv
nPUjMrvdgTvP7wKG5YSVTA5tCKJ1g4ulbSVOfuqVZMANZX6HThHJyyNIRRinrUqsXuzlOvom7
iSJZHtT3BRUUgUjgHfn5KCDysrUSXcVJq3MidaeUgz3eephclcmNydvXmeIv8qzoiRTaIENn3
60KS0J2EGkGmTMam
Reply-To: geda-user AT delorie DOT com

Now this is where the power of the raw text file comes into play. I
suggest you look at 'grep' which is a standard text utility in linux,
and will allow you to filter your schematics. You will probably need
some context (-A/-B/-C) in your grep command to give you all the
important information, but you can then process this to give you your list.

If you need some help, drop me a line.

Best regards,

Michael.

On 08/01/16 11:05, Matt Rhys-Roberts (matt DOT rhys-roberts AT envinsci DOT co DOT uk)
[via geda-user AT delorie DOT com] wrote:
> 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.
>
>

- Raw text -


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