Created
February 18, 2013 22:56
-
-
Save steveklabnik/4981528 to your computer and use it in GitHub Desktop.
gschool blog feed link converter
This file contains hidden or 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
| text = `curl https://raw.github.com/gSchool/submissions/master/writing/index.markdown` | |
| text.split("\n").each do |line| | |
| next unless line =~ /\*/ | |
| line =~ /\* (?:\w|\s)+: (.*)/ | |
| puts $1 + "/feed.xml" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment