Usage:
./create_contacts.sh -i /path/to/extracted/backup/ -o /path/to/output/file.ext -n args
while -n specifies the content of the name field:
ffor first namelfor last namenfor nicknameifor Threema ID"character"for a special character/string which acts as a delimiter between fields
You can order the fields as you like and don't have to use all fields.
For example, ./create_contacts.sh -n fl"("n") -"i would create a line like ABCDEF12 : publickey123 : John Doe ( johnny ) - ABCDEF12,
./create_contacts.sh -n lf would be ABCDEF12 : publickey123 : Doe John et cetera.
All arguments are optional, the default arguments are . for -i, contacts.txt for -o and fl"("n")" for -n.