To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.admin.generalOpen lugnet.admin.general in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Administrative / General / 4191
4190  |  4192
Subject: 
Re: Parsing Pause database
Newsgroups: 
lugnet.general, lugnet.admin.general, lugnet.off-topic.geek
Date: 
Sat, 15 Jan 2000 04:01:10 GMT
Viewed: 
138 times
  
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



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

Message is in Reply To:
  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)

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