delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/08/08:34:58

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Message-ID: <568FBAEF.90206@iee.org>
Date: Fri, 08 Jan 2016 13:34:39 +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> <s6ny4c0ryvq DOT fsf AT falbala DOT ieap DOT uni-kiel DOT de>
In-Reply-To: <s6ny4c0ryvq.fsf@falbala.ieap.uni-kiel.de>
X-Provags-ID: V03:K0:r40rmr9bZaSw7btg/YoRCTk9tv91ZdTGTQIpU5EdZEmTl2J7qck
PTovcxeweAwoCs7oWOTjYgnP0CaymPA94Srg6B2ZS0UJ+vy2IEMLAtKTA3duW9GzXiya7qm
hlp4ZLa79nsLucqR+/yOOjKkKyVh+MvNDU4jZJYv1ZT0o43JZmwshLvKVMS2Gkx9SvdnlR+
07l0LQRqf1iYLcDeFEQNQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:FTJIlzojRdE=:loWX8Mh/Nx4NQXFl10f193
hjhQZcHzypb4j3uEKQ9lHEMQyVShsepNCHlSJiOfCP00PIFTqQibBXPNiAsqNeZjdyXp2yozY
7R6Hs+XnZxVA4NF5P3oYMIYzruzNyfUmaKawFFdVI+Hlk9Jyu3ISOd9IB+qQdN2ClAm48uyLW
CC2Yh+HW6MfUxufsGhoxOixP0ULslmZBAVNi8IWYbe5ez9BhEH3D2qRw6KUAKrmmX4ae6uKZC
fTWc6JD9Lwlx+kIis+GtV1ynysCq3U16Bs6h16C2cSh9WOeKj0ZVa0JWu4CRmaC7OXKJJvSjq
ZoqQP9K1s7Inq8l/fvbiK8qC+058WehBw5aRWvY5qYFZwTG2NUGQwFGiPoqtGSn9cRj3zbwDI
fTzeUZvPmNb4QwiFMrCs66GDlsf4R1IMoTAkT4VW2DwQi0KHlidxXHPN5vlSq+Ebbv2N6arsy
XrFSl9CWOokVP6OIfWEywQGdZgMc/C1f30uKUTd4K/e/DiBUKKTNcqk1uyZKHd2qFvPSLLJnZ
nKhu25XGiTrFXgL74LTvLk72iItBPiOxn9QGTilPYNcSXUCYOMUdw27DHkHLTS+BPx2AqDQaH
6A4Ha+itUC/zaTo4iZFgXs96CQ4RmLL2xA99GOMxYUQr4nB16eLhcidrrDX4unheHgETm66gH
8rvEMCdmAyrMdDJjhmITw/Yv0kuGrhEpRW22P13WEMIjQzYfaIOjBjOHlp0QWbiIGSQz707J0
G8DCRcixUJZ9fSSU
Reply-To: geda-user AT delorie DOT com

See Below...
On 08/01/16 13:20, Stephan Böttcher wrote:
> "Matt Rhys-Roberts (matt DOT rhys-roberts AT envinsci DOT co DOT uk) [via
> geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> writes:
>
>> 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.
> I'd use awk
>
> $ awk '/^refdes=/{R=$0};/^value=10M/{print FILENAME, R, $0}' *.sch
> CSA-Beau-F.sch refdes=R1 value=10MΩ
> CSA-Beau-F.sch refdes=R51 value=10MΩ
> eptpreamps.sch refdes=R13 value=10MΩ
> eptpreamps.sch refdes=R14 value=10MΩ
> eptpreamps.sch refdes=R15 value=10MΩ
> eptpreamps.sch refdes=R16 value=10MΩ
> hetpreamps.sch refdes=R13 value=10MΩ
> hetpreamps.sch refdes=R14 value=10MΩ
> hetpreamps.sch refdes=R15 value=10MΩ
> hetpreamps.sch refdes=R16 value=10MΩ
>
Hey, that looks good .. I like that .. post it up somewhere ... :)

MJE

- Raw text -


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