Created
March 30, 2012 12:47
-
-
Save tlossen/2251295 to your computer and use it in GitHub Desktop.
extract emails from vcf file
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
#! /usr/bin/env ruby | |
puts(open("vcards-XING.vcf").lines.map do |line| | |
$1.chomp if line =~ /^EMAIL.*:(.*)$/ | |
end.compact.uniq.join(',')) |
Martin Wilhelm: nach nem dos2unix hilft dann auch korrekterweise ein
cat vcards-XING.vcf |grep EMAIL|awk -F"pref:" '{print$2}'|uniq|sort|sed '/^$ /d'
Werde ich die nächsten Tage gleich mal machen.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
usage