maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   What is the easiest way to export a Contact spreadsheet? (https://talk.maemo.org/showthread.php?t=62687)

edanto 2010-09-21 21:30

What is the easiest way to export a Contact spreadsheet?
 
I'd like to move my contacts to a new device from my beloved brick, and have been trying to find the easiest way.

Ideally I'd like to export a spreadsheet from my phone and then upload that into my main Google Apps email account.

I have tried MfE to sync my contacts, but it's giving some errors. I'm also using Backup app, but that created a zip file and I've started looking through it but there's a lot in there and no sign of a contacts spreadsheet!

My preference would be to just export all contacts to a spreadsheet and then take that off the device. Is that possible, please?

JonWW 2010-09-21 21:40

Re: What is the easiest way to export a Contact spreadsheet?
 
Open contacts, hit the title bar and press export. You will get a list of vcards in a directory ready for you to transfer to your other device.

edanto 2010-09-21 22:39

Re: What is the easiest way to export a Contact spreadsheet?
 
oh my word, that was so easy! I can probably manipulate the vcards into the new device (it's a htc) or into Google Apps

thanks!

mehulrajput 2010-09-21 22:51

Re: What is the easiest way to export a Contact spreadsheet?
 
remember there is one vcard per contact, so it kind of becomes PITA to import them.

you can use the following command to merge all vcard into one file

more *.vcf > ../all.vcf

and then open the all.vcf in notepad++ and replace END VCARDBEGIN VCARD with END VCARD\n\n BEGIN VCARD

as every thing is appended in one file, the next vcard does not got to new line after ending of previous vcard.

once the replace is done, you are all set to import all the vcard into google or outlook or evolution.

edanto 2010-09-22 07:25

Re: What is the easiest way to export a Contact spreadsheet?
 
thank you, that is particularly helpful! i would not have had a clue how to merge those vcards into 1 file and really appreciate the detailed help.

edanto 2010-09-22 18:42

Re: What is the easiest way to export a Contact spreadsheet?
 
thanks mehulrajput!

I'm having some trouble with the find/replace step - would you have a few minutes to help please?

I created the all.vcf file, and here's an excerpt. (I snipped the details obviously for privacy). As you can see I don't have a "END VCARDBEGIN VCARD" string, it's different in each case.


::::::::::::::
Abbey.vcf
::::::::::::::
BEGIN:VCARD
VERSION:3.0
UID:1397
REV:2010-05-31T13:44:15Z
TEL;TYPE=CELL,VOICE:+353 <snip>
FN:Abbey
N:Abbey;;;;
END:VCARD::::::::::::::
Adrian Lynch.vcf
::::::::::::::
BEGIN:VCARD
VERSION:3.0
UID:1398
REV:2010-05-31T13:44:15Z
TEL;TYPE=CELL,VOICE:+353<snip>
FN:Lynch\, Adrian
N:Lynch;Adrian;;;
END:VCARD::::::::::::::
Adrienne Mockler.vcf
::::::::::::::
BEGIN:VCARD
VERSION:3.0
UID:1399
REV:2010-05-31T13:44:15Z
TEL;TYPE=CELL,VOICE:+353<snip>
FN:Mockler\, Adrienne
N:Mockler;Adrienne;;;
END:VCARD

On top of that I don't have (and can't seem to figure out how to get) notepad++ for my ubuntu. I have gedit and the doing find-replace with /n/n only adds in '/n/n' as opposed to adding in a new line.

Any tips, please?

WhiteWolf 2010-09-22 19:39

Re: What is the easiest way to export a Contact spreadsheet?
 
You can use "glogarchive 0.7"

It exports to ".csv" is read by Excel, etc ...

kureyon 2010-09-23 05:41

Re: What is the easiest way to export a Contact spreadsheet?
 
Quote:

Originally Posted by edanto (Post 823691)
As you can see I don't have a "END VCARDBEGIN VCARD" string, it's different in each case.

Try using cat instead:
Code:

cat *.vcf > ../all.vcf
Quote:

I have gedit and the doing find-replace with /n/n only adds in '/n/n' as opposed to adding in a new line.
Note back slash not forward slash
Code:

\n\n

mehulrajput 2010-09-23 20:23

Re: What is the easiest way to export a Contact spreadsheet?
 
Quote:

Originally Posted by edanto (Post 823691)
thanks mehulrajput!

I'm having some trouble with the find/replace step - would you have a few minutes to help please?

I created the all.vcf file, and here's an excerpt. (I snipped the details obviously for privacy). As you can see I don't have a "END VCARDBEGIN VCARD" string, it's different in each case.


::::::::::::::
Abbey.vcf
::::::::::::::
BEGIN:VCARD
VERSION:3.0
UID:1397
REV:2010-05-31T13:44:15Z
TEL;TYPE=CELL,VOICE:+353 <snip>
FN:Abbey
N:Abbey;;;;
END:VCARD::::::::::::::
Adrian Lynch.vcf
::::::::::::::
BEGIN:VCARD
VERSION:3.0
UID:1398
REV:2010-05-31T13:44:15Z
TEL;TYPE=CELL,VOICE:+353<snip>
FN:Lynch\, Adrian
N:Lynch;Adrian;;;
END:VCARD::::::::::::::
Adrienne Mockler.vcf
::::::::::::::
BEGIN:VCARD
VERSION:3.0
UID:1399
REV:2010-05-31T13:44:15Z
TEL;TYPE=CELL,VOICE:+353<snip>
FN:Mockler\, Adrienne
N:Mockler;Adrienne;;;
END:VCARD

On top of that I don't have (and can't seem to figure out how to get) notepad++ for my ubuntu. I have gedit and the doing find-replace with /n/n only adds in '/n/n' as opposed to adding in a new line.

Any tips, please?

oh i sorry didn't realise you have ubuntu installed. it is much more easier in ubuntu :-)... so here you go..

create all.vcf using the following command. you will have to be in the directory where single vcf for each contact is kept.

cd <directory to where single vcf are kept>
more *.vcf > ../all.vcf
cd ..

now open vi editor

vi all.vcf

type the following command

:%s/END VCARDBEGIN VCARD/END VCARD\n\nBEGIN VCARD/g
:wq

and you are all set. sorry do not know how to do it through gedit as i more of a vi guy :-)

janeuner 2010-09-23 21:00

Re: What is the easiest way to export a Contact spreadsheet?
 
You can do all of that using the N900 shell:

Code:

ls -x *.vcf | while read i ; do
  cat "$i" >> all.vcf ;
  echo -en "\n\n" >> all.vcf ;
done



All times are GMT. The time now is 23:39.

vBulletin® Version 3.8.8