To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.generalOpen lugnet.general in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 General / 13671
13670  |  13672
Subject: 
Re: Parsing Pause database
Newsgroups: 
lugnet.general, lugnet.admin.general, lugnet.off-topic.geek
Date: 
Sat, 15 Jan 2000 04:14:25 GMT
Viewed: 
756 times
  
BramL@JUNO.com (Bram Lambrecht) wrote in <FoCz5y.DMp@lugnet.com>:

In lugnet.general, Todd Lehman writes:
Here's a q&d pseudo-grep, if that helps...

#!/bin/sh
cat /home/username/lego/bynumber.txt | \
perl -e 'my %x = map {(split(/\t/,$_,2))[0], $_} grep {/^\d.*\t/} • <STDIN>;
        print join "", map {$x{$_}} @ARGV;' $*

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 together to search it myself .
--Bram

Bram, check out:
   http://www.lugnet.com/pause/lists.html

I think the files referenced on those pages are already basically
in the format you're looking for.  That's where bynumber.txt
comes from.

  -r'm



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

Message is in Reply To:
  Re: Parsing Pause database
 
(...) 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)

11 Messages in This Thread:



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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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