Skip to content

Instantly share code, notes, and snippets.

@antonjn
Last active January 2, 2016 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonjn/8298721 to your computer and use it in GitHub Desktop.
Save antonjn/8298721 to your computer and use it in GitHub Desktop.
Merge .vcf contacts to one with all of them (for import to Google Contacts).
#!/usr/bin/env bash
# Merge all contacts for easy import, ex. to google contacts.
set -e
name='_all_as_one.vcf'
GLOBIGNORE="${name}" # Skip the merged file.
cat */*.vcf *.vcf > ${name}
echo "Merged all contacts to ${name}!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment