Author |
Topic: Find phone numbers in billions of files (Read 509 times) |
|
chuncl
Junior Member
Gender:
Posts: 87
|
|
Find phone numbers in billions of files
« on: Sep 30th, 2008, 10:36am » |
Quote 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:
Posts: 13730
|
|
Re: Find phone numbers in billions of files
« Reply #1 on: Sep 30th, 2008, 10:57am » |
Quote 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
|
|
|
|