Skip to content

Instantly share code, notes, and snippets.

@spacecowboy
Created February 23, 2017 22:31
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 spacecowboy/c13930db251fc3017a77985c08b3fea0 to your computer and use it in GitHub Desktop.
Save spacecowboy/c13930db251fc3017a77985c08b3fea0 to your computer and use it in GitHub Desktop.
Naive OPML to Orgmode converter
#!/usr/bin/env perl
print "* Blogs\n";
while (<>) {
if (/text="(.*?)">/) {
print "** $1 :$1:\n";
}
if (/text="(.*?)" type=".*?" xmlUrl="(.*?)"/) {
print "*** [[$2][$1]]\n"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment