
01-15-2009, 06:11 PM
|
 |
PPCGeeks Regular
Offline
Threadstarter
Location: Chicago
|
|
Join Date: Jul 2007
Posts: 97
Reputation: 90 
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
|
|
Re: Lookup City based on Caller ID
Quote:
Originally Posted by edraven
awk gets you most of the way there, this is for a CSV output:
cat allutlzd.txt |awk -F"\t" '{print $1","$2","$4","$5}'
output is like this:
AK ,907-200,"ACS WIRELESS, INC." ,VALDEZ
AK ,907-209,"DOBSON CELLULAR SYSTEMS, INC." ,JUNEAU
but of course you'll want to modify it to output in .reg format...
something like this maybe?
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\PHONE\AreaCode\]
[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\PHONE\AreaCode\\41 5]
[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\PHONE\AreaCode\\41 5\343]
"Company"="MCI WORLDCOM COMMUNICATIONS, INC., CA"
"RateCenter"="SNFC CNTRL"
"State"="CA"
[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\PHONE\AreaCode\\41 5\344]
"Company"="PACIFIC BELL"
"RateCenter"="SNFC CNTRL"
"State"="CA"
|
Actually I was just thinking of leaving it in a physical file that would install in the pgm directory... the program would then parse through the file to find required info... this way people dont have to mess with their registry, and they can update the file if they need to/want to...
|