X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-TCPREMOTEIP: 63.119.35.194 X-Authenticated-UID: jpd AT noqsi DOT com Content-Type: multipart/signed; boundary="Apple-Mail=_9949F8A2-78DD-41E6-AD89-916E1A672139"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [geda-user] Searching for refdes's having a specific attribute? X-Pgp-Agent: GPGMail 2.5.2 From: John Doty In-Reply-To: Date: Fri, 8 Jan 2016 08:55:02 -0500 Message-Id: <98DD4EFF-C1B7-4D51-9C99-DB0E04A99AAC@noqsi.com> References: <568F9808 DOT 5040808 AT envinsci DOT co DOT uk> To: geda-user AT delorie DOT com X-Mailer: Apple Mail (2.1878.6) 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 --Apple-Mail=_9949F8A2-78DD-41E6-AD89-916E1A672139 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Jan 8, 2016, at 8:20 AM, Stephan B=C3=B6ttcher wrote: > "Matt Rhys-Roberts (matt DOT rhys-roberts AT envinsci DOT co DOT uk) [via > geda-user AT delorie DOT com]" writes: >=20 >> How could I search a directory of .sch schematic sheets for = components >> that contain a specific attribute, e.g. OrderCode=3D1234567, 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. >=20 > I'd use awk >=20 > $ awk '/^refdes=3D/{R=3D$0};/^value=3D10M/{print FILENAME, R, $0}' = *.sch Assumes refdes comes first, which may not alway be true. > CSA-Beau-F.sch refdes=3DR1 value=3D10M=CE=A9 > CSA-Beau-F.sch refdes=3DR51 value=3D10M=CE=A9 > eptpreamps.sch refdes=3DR13 value=3D10M=CE=A9 > eptpreamps.sch refdes=3DR14 value=3D10M=CE=A9 > eptpreamps.sch refdes=3DR15 value=3D10M=CE=A9 > eptpreamps.sch refdes=3DR16 value=3D10M=CE=A9 > hetpreamps.sch refdes=3DR13 value=3D10M=CE=A9 > hetpreamps.sch refdes=3DR14 value=3D10M=CE=A9 > hetpreamps.sch refdes=3DR15 value=3D10M=CE=A9 > hetpreamps.sch refdes=3DR16 value=3D10M=CE=A9 >=20 > -- > Stephan >=20 >=20 John Doty Noqsi Aerospace, Ltd. http://www.noqsi.com/ jpd AT noqsi DOT com --Apple-Mail=_9949F8A2-78DD-41E6-AD89-916E1A672139 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJWj7+3AAoJEF1Aj/0UKykRTOgP/RgBfHXSvc/aGc2VWYMZULTm gaxjnBphnosmBHl6cw2qodW3i+JEH+v83/hwJO6STpJmU352x3vM9Pboc9b9lwl/ bNQbfb0p2E6elhHOrocNuHxRaiqXP2guDRtobQ/3vsw+Qe/LZbCPXbXOCQIGcKtP goEXL/IAOqd1QMTLSkj87TUSwX1/49EWj7ECiMtcIZHtZ30ULT4gZlt5UDRVmG0W /xwuH57A0fKlAifJdF4A8gXS6XHfiyFVSoZiLkl8k8anw8jh0TT+iY86MuQ0zwb3 JAIYCgS2SNtfQC6VxCYKVfzI66gKjvTXvRLyEy9Mx2m5lAbBUNEmGjpu8oZNxnK4 WLzdXmgHpIfFO1dKQld8mU7XCOGLOto36xc5X0LzjVpCOlmXhWW3OSKGre2ou/Nw TrzfftMlgEQWoGknXvDtNBhUhGH2Ux5XRkZ0YokjHIz0imJilvO+8I9LbmfQ2Jmn jxSvs2UQQ3/tKxymJKAQZAtZsxFgi0ulhtWFcTW7MMlkjZ9HKTAlhCzpasUd7bQv bythBVi6qJOJkOTviHjA+Wij0ijuAtLhe0kg9+fDC+X7j4G03eLdoSZFlVFgSyoM HcDrNkMU2pBKzXF4fah27AJjR5MGryeuGBuAwNhJjDjAe8TpJK9Mb3+ToC/CcBZ3 2zwmUjQfIOiSEnFtwTL+ =cBOp -----END PGP SIGNATURE----- --Apple-Mail=_9949F8A2-78DD-41E6-AD89-916E1A672139--