Mail Archives: geda-user/2016/01/08/08:55:17
--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 <geda AT psjt DOT org> 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:
>=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--
- Raw text -