Re: Orcad import .bom file into database

From: Nicholas O. Lindan (see_at_sig.com)
Date: 12/21/04


Date: Tue, 21 Dec 2004 14:16:04 GMT


"Steve at fivetrees" <steve@NOSPAMTAfivetrees.com> wrote

> The Orcad .bom file format is not easily parsed -
> it's columnar with line-breaks in strange (to a parser) places.

If it is the same as I remember (a DOS version) it was
bad, but not that bad. I remember doing it in AWK in not
too much time, hour or two, and most of that was figuring
out AWK - there isn't much to figure out.

Will the version of Orcad the OP is using send the BOM
out in csv form? Naw, probably not, or the question wouldn't
be asked.

-- 
Nicholas O. Lindan, Cleveland, Ohio
Consulting Engineer:  Electronics; Informatics; Photonics.
Remove spaces etc. to reply: n o lindan at net com dot com
psst.. want to buy an f-stop timer? nolindan.com/da/fstop/


Relevant Pages

  • Re: Scripting: awk reg. exp.
    ... Chart of similar operations with sed and awk ... to follow Unix quoting syntax '/like/ '. ... If I am sure that a script will NOT need to be quoted in Unix, DOS, or ... # print section of file between two regular expressions ...
    (AIX-L)
  • Re: Convert DATE to NUMBER
    ... If possible pass DOS batch variables to awk using awk variables; ... I'd rather use a stand-alone gawk and it looks like the new gawk ... has the mktimefunction as well as not needing the .dll ...
    (comp.lang.awk)
  • Re: awk equalvent command with awk95.exe
    ... In DOS there isn't a straight equivalent. ... In Windows you can associate the .awk extension with awk95.exe (right click on ... After that you can use the start command to start the script (with parameters, ...
    (comp.lang.awk)
  • Re: sort contents of a file according to a numeric field
    ... As I told you I am using the Dos sort not the unix version so there is ... Either install a port of sort for dos that supports -n, or use this awk ...
    (comp.lang.awk)
  • Re: awk: vier sind doch ein bisschen viel
    ... Du hast nunmal zwei Ebenen: ... die des RegEx Parsers innerhalb der von AWK nur verwendeten Regex. ... Wenn du keinen ' verwenden wuerdest, um das awk-script vor dem Parser ... der Shell zu schuetzen, haettest du noch eine dritte ebene und acht ...
    (de.comp.os.unix.shell)