ldif2vcard filename[.ldif] [selectkey]
Thunderbird in ldif format into a vcard file suitable for Evolution, with the same name, but .vcf extension. It is not meant to be a general ldif to vcard converter, as it looks only for fields used in the Thunderbird addressbook and tries to match those with fields used by the Evolution addressbook. If a selection key is given, only records matching that key are converted, and the key is appended to the output file name.
base64 program, which for Ubuntu is available in the coreutils package