To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 1042
1041  |  1043
Subject: 
Parsing Pause database
Newsgroups: 
lugnet.general, lugnet.admin.general, lugnet.off-topic.geek
Date: 
Thu, 13 Jan 2000 23:39:28 GMT
Viewed: 
18 times
  
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 delimited using commas or tabs or something.
I would love something like this (I don't really need *all* the parts, but I'd
prefer to at least have the number of pieces) to aid in inventorying my LEGO
collection.
Thanks,
--Bram



Message has 3 Replies:
  Re: Parsing Pause database
 
(...) 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
 
(...) 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
 
(...) 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)

11 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR