wu :: forums
« wu :: forums - Find phone numbers in billions of files »

Welcome, Guest. Please Login or Register.
Jan 5th, 2025, 1:56am

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   cs
(Moderators: Grimbal, william wu, towr, Eigenray, SMQ, ThudnBlunder, Icarus)
   Find phone numbers in billions of files
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Find phone numbers in billions of files  (Read 509 times)
chuncl
Junior Member
**





   


Gender: male
Posts: 87
Find phone numbers in billions of files  
« on: Sep 30th, 2008, 10:36am »
Quote Quote Modify Modify

Find phone numbers in a directory containing some billions of files.
I just said use a regular expression, u can use it in grep or u can use it in sed type of scripting or u can write a Java/C++ program
IP Logged

It is fun
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Find phone numbers in billions of files  
« Reply #1 on: Sep 30th, 2008, 10:57am »
Quote Quote Modify Modify

A phone directory usually has some order in it you could exploit. If they are just random files, then regular expressions is the best you can do for a single search. (If you will need to do many searches, preprocessing the data becomes useful.)
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board