On Tue, Aug 26, 2008 at 16:47, julien cubizolles <[EMAIL PROTECTED]> wrote: > Le mardi 26 août 2008 à 16:07 +0200, Damien Thébault a écrit : > >> >> It doesn't import correctly if you have more than one TYPE in TEL. >> >> (I did reply here: >> http://n2.nabble.com/OM2008.8%2C-importing-VCF-contacts-tp781631p782244.html >> with a little sed command) > > I think it should address my problems : I'm also exporting from > evolution. I feel a little stupid though (not used to sed) : how do I > use your sed line to convert my vcard file ? > > I tried > sed -r -e 's/;TYPE=([^,]+),[^;]+;/;TYPE=\1;/g' | iconv -t > 'ascii//TRANSLIT' oldfile.vcf > newfile.vcf >
put oldfile.vcf before the pipe : sed -r -e 's/;TYPE=([^,]+),[^;]+;/;TYPE=\1;/g' oldfile.vcf | iconv -t 'ascii//TRANSLIT' > newfile.vcf (I saw some people saying that accent were working fine, maybe the vcf file must be in iso-8859-15 format) -- Damien Thebault _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community