Created
October 7, 2019 15:37
-
-
Save loadenmb/31d894166e455ece8b3d9b41b5e75571 to your computer and use it in GitHub Desktop.
multiple vcards (*.vcf) to single vcard converter (all.vcf)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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