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=_CED33800-F32E-4FC9-886F-A38519A68C67"; 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: <568FB7F6.7040300@envinsci.co.uk> Date: Fri, 8 Jan 2016 08:40:48 -0500 Message-Id: <6A8C16EF-C5A1-491D-B306-E14EEFE52AB6@noqsi.com> References: <568F9808 DOT 5040808 AT envinsci DOT co DOT uk> <568F9AA5 DOT 4070402 AT iee DOT org> <568FB7F6 DOT 7040300 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=_CED33800-F32E-4FC9-886F-A38519A68C67 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Jan 8, 2016, at 8:21 AM, Matt Rhys-Roberts = (matt DOT rhys-roberts AT envinsci DOT co DOT uk) [via geda-user AT delorie DOT com] = wrote: > Thanks Michael... Hmm, it'll be interesting. The number of lines = between the refdes=3Dxxx and OrderCode=3Dyyy lines, varies in number and = sequence. So outputting via grep would need a blanket number of = pre-match context and post-match context lines to include. It'd be messy = :) Make a file named =93attribs=94 with contents: device value spec footprint description OrderCode (adjust as needed) Then do =93gnetlist -g bom -o bom.txt That will maintain the relationship between refdes and attributes. >=20 > For now I'll just use grep to locate which .sch files contain the = specific order code, then hop around the schematic in gschem using = Attributes->FindSpecificText . >=20 > Regards, > Matt. >=20 >=20 > On 08/01/16 11:16, M. J. Everitt (m DOT j DOT everitt AT iee DOT org) [via = geda-user AT delorie DOT com] wrote: >> 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. >>=20 >> If you need some help, drop me a line. >>=20 >> Best regards, >>=20 >> Michael. >>=20 >> 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=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 >>> 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? >>>=20 >>> 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... >=20 >=20 John Doty Noqsi Aerospace, Ltd. http://www.noqsi.com/ jpd AT noqsi DOT com --Apple-Mail=_CED33800-F32E-4FC9-886F-A38519A68C67 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 iQIcBAEBCgAGBQJWj7xgAAoJEF1Aj/0UKykRPMEP/AgvNYLt4uRIg/c1DGV+ZFhb HJ5B3V6OgY8Noe/3w7s86uHo0jvzNdelR5LDd62YMfWYV5nO8ER8xghhMQx7VQyj 6lDpj3LRpGRA3vywARsp8vmuWQYBMXzobrnLtyxJtByNo2SEvXbkgy1Oy6nUle1/ gtmLo9A+3u0kdOhEzCYX9+LYNBEhCkblMEvE4Th17s9hjv/DAd9DW+R3t6S4j8kF ByEBG3GJQc50hetjwSeAEVJFzmFhOebWKauZw0VL3+52E8VVpBD1kOdNAHxNL4cC rGnLKp+o+dZ8GYaD27w7Brd47D40ySfBk9cBJZb884HNRMNUaC9YDh2FrhrTEVmZ rsLLRdQ5hX59XRojr+0Z5wS1kWZHYFjbijiOwZM6Z3rs4i3ojczZO/8FCuANvdix 0n+KV+4wSjKkYUAMPgrO8mDmjoByRjv6arWl7q7kXYY5kvkDkUo4qWPQlY8HR7SL MhqyIWjSQvXK7el0LwMqEk1EpdrgiFOX5qOBCjzzjKsggj/8MVK6tEosUtF6jWyI u5XFO+6J/3r0h1IeOTX8ySStbKtYra6gpUXPMi5IEjbWFG1GJ1UBiAX7NHTG0YvU 4BkrlWQd6L2xTp+2qaHjrsI96xXOApgHPEwOWKPT+MbeXkWES8D6o/1PzR5O4q4M /QgxOJuesxsXYSS9/zco =nXz+ -----END PGP SIGNATURE----- --Apple-Mail=_CED33800-F32E-4FC9-886F-A38519A68C67--