Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] phonebook's format with whfc





Fabrice Cartron schrieb:
> 
> Hei,
> 
> I have a lot of problem with the format of the whfc's phonebook.
> Can somebody send me is own phonebook, only in order to
> understand the way to do this document?
> 
Hey, i recently made a little perl script, which made a
phonebook for me
from a csv file from my cellphone. take a look 

Hope this helps

Torsten

my csv file

XWD LADEN;03917319172;A;10;
ELTERN;03928847095;A;11;
FRITZ;03317097110;A;12;


i only take the name and the number 


the script:

#/usr/bin/perl

open(BILDERDAT, "/home/torsten/whfctelbuch/test");
   while(<BILDERDAT>)
     {
       push(@Zeilen,$_);
         }
 close (BILDERDAT) ;

for (@Zeilen) {
   chop ($_);
      @tempfeld = split(/;/,$_) ;
      $nummer{$tempfeld[0]} = $tempfeld[1] ;
}

foreach ( keys %nummer) {


$i++;
print "$i    $_   $nummer{$_}\n";
}


open(BILDERDAT, ">/home/torsten/whfctelbuch/test.phb");

print BILDERDAT "PBOOK1.1";
foreach ( keys %nummer) {
    print BILDERDAT "$_|$nummer{$_}||||||0|"
    }
close (BILDERDAT) ;


____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services