Skip to content

Instantly share code, notes, and snippets.

@loadenmb
Created October 7, 2019 15:37
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 loadenmb/31d894166e455ece8b3d9b41b5e75571 to your computer and use it in GitHub Desktop.
Save loadenmb/31d894166e455ece8b3d9b41b5e75571 to your computer and use it in GitHub Desktop.
multiple vcards (*.vcf) to single vcard converter (all.vcf)
#! /bin/sh
# multiple vcards (*.vcf) to single vcard converter (all.vcf)
# usage: place in vcard directory and execute to convert multiple .vcf from current directory to single one named all.vcf
# do for all .vcf files from directory
for file in *.vcf; do
# add file content do single vcard
cat "$file" >> ../all.vcf
# add line break
echo "" >> ../all.vcf
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment