Skip to content

Instantly share code, notes, and snippets.

@tlossen
Created March 30, 2012 12:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlossen/2251295 to your computer and use it in GitHub Desktop.
Save tlossen/2251295 to your computer and use it in GitHub Desktop.
extract emails from vcf file
#! /usr/bin/env ruby
puts(open("vcards-XING.vcf").lines.map do |line|
$1.chomp if line =~ /^EMAIL.*:(.*)$/
end.compact.uniq.join(','))
@tlossen
Copy link
Author

tlossen commented Mar 30, 2012

usage

  • export xing contacts as vcards
  • run script
  • import emails into linkedin

@avanderberg
Copy link

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