| | Parsing Pause database Bram Lambrecht
|
| | Has anyone coded some kind of utility which performs something similar to the following: Input: text file with list of set numbers Output: text file with set number, set name, number of pieces, and retail price I suppose the output would be (...) (25 years ago, 13-Jan-00, to lugnet.general, lugnet.admin.general, lugnet.off-topic.geek)
|
| | |
| | | | Re: Parsing Pause database Matthew Miller
|
| | | | (...) Huh. I don't know of such a thing, but it wouldn't be very hard to make. Perhaps if I'm bored while on vacation... :) (25 years ago, 14-Jan-00, to lugnet.general, lugnet.admin.general, lugnet.off-topic.geek)
|
| | | | |
| | | | | | Re: Parsing Pause database Bram Lambrecht
|
| | | | | (...) If you have time, please do :) (When's your vacation?) --Bram Bram Lambrecht / o o \ BramL@juno.com ---...---oooo-----(_...o---...--- WWW: (URL) (25 years ago, 14-Jan-00, to lugnet.general, lugnet.admin.general, lugnet.off-topic.geek)
|
| | | | | |
| | | | | | | Re: Parsing Pause database Matthew Miller
|
| | | | | (...) :) now. (25 years ago, 14-Jan-00, to lugnet.general, lugnet.admin.general, lugnet.off-topic.geek)
|
| | | | | |
| | | | Re: Parsing Pause database Todd Lehman
|
| | | | (...) Here's a q&d pseudo-grep, if that helps... #!/bin/sh cat /home/username/lego/...number.txt | \ perl -e 'my %x = map {(split(/\t/,$_,2))[0], $_} grep {/^\d.*\t/} <STDIN>; print join "", map {$x{$_}} @ARGV;' $* --Todd (25 years ago, 14-Jan-00, to lugnet.general, lugnet.admin.general, lugnet.off-topic.geek)
|
| | | | |
| | | | | | Re: Parsing Pause database Bram Lambrecht
|
| | | | | (...) What exactly does this bit of code do? How do I use it? (I've done some programming, but only in C, and nothing really fancy) Where can I get a copy of bynumber.txt?--if it includes all the info I need, I could probably throw some code (...) (25 years ago, 15-Jan-00, to lugnet.general, lugnet.admin.general, lugnet.off-topic.geek)
|
| | | | | |
| | | | | | | Re: Parsing Pause database Remy Evard
|
| | | | | BramL@JUNO.com (Bram Lambrecht) wrote in <FoCz5y.DMp@lugnet.com>: (...) <STDIN>; (...) copy of (...) some (...) Bram, check out: (URL) think the files referenced on those pages are already basically in the format you're looking for. That's where (...) (25 years ago, 15-Jan-00, to lugnet.general, lugnet.admin.general, lugnet.off-topic.geek)
|
| | | | | |
| | | | | | | Re: Parsing Pause database Bram Lambrecht
|
| | | | | (...) Thanks. I'll see what I can do with it... --Bram Bram Lambrecht / o o \ BramL@juno.com ---...---oooo-----(_...o---...--- WWW: (URL) (25 years ago, 15-Jan-00, to lugnet.general, lugnet.admin.general, lugnet.off-topic.geek)
|
| | | | | |
| | | | | | | Re: Parsing Pause database Bram Lambrecht
|
| | | | | (...) Done. I wrote a little C program, which grabbed everything I needed from the bynumber.txt file almost instantly (for 168 sets). For some reason, it couldn't handle 3 digit numbers, but there were only three of those, so I copied them manually. (...) (25 years ago, 16-Jan-00, to lugnet.general, lugnet.admin.general, lugnet.off-topic.geek)
|
| | | | | |
| | | | Re: Parsing Pause database Steve Demlow
|
| | | | (...) I wrote such a script. However, it is really ugly: it's mostly Tcl but it calls perl to do the DB query. It should be all perl (it would be much easier/shorter/quicker) but it grew out of something else I was playing with in Tcl. Steve (25 years ago, 14-Jan-00, to lugnet.general, lugnet.admin.general, lugnet.off-topic.geek)
|
| | | | |
| | | | | | Re: Parsing Pause database Bram Lambrecht
|
| | | | (...) I don't care how ugly it is as long as it works and its not to hard to use...where can I get it? --Bram (25 years ago, 15-Jan-00, to lugnet.general, lugnet.admin.general, lugnet.off-topic.geek)
|
| | | | |