From 8a6f120eeb9f2a540cfb07a8f984c22d29b33908 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 28 Oct 2010 19:47:48 +0200 Subject: Move projects/* → /. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- foaf/fbfixup.pl | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 foaf/fbfixup.pl (limited to 'foaf/fbfixup.pl') diff --git a/foaf/fbfixup.pl b/foaf/fbfixup.pl new file mode 100755 index 0000000..5cc5f60 --- /dev/null +++ b/foaf/fbfixup.pl @@ -0,0 +1,41 @@ +#!/usr/bin/perl + +# Sanitize RDF from Facebook Exporter + +undef $/; + +while (<>) { + + s{ + Mørkøv\n\s* + Vestsjalland\n\s* + Denmark\n\s* + + \n\s* + .*?\n\s* + \n\s* + \n\s* + + }{}gsx; + + s{ + \n\s* + + }{ + + + }gsx; + + s{ + \n\s* + \n\s* + \n\s* + \n\s* + .*?\n\s* + \n\s* + + }{}gsx; + + s,(( *)),$1\n$2$3\@chat.facebook.com,gs; + print; +} -- cgit v1.2.3