Created
February 23, 2017 22:31
-
-
Save spacecowboy/c13930db251fc3017a77985c08b3fea0 to your computer and use it in GitHub Desktop.
Naive OPML to Orgmode converter
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 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