Created
August 11, 2017 06:25
-
-
Save hogelog/d97eb6795861db0462bd64f8418e1210 to your computer and use it in GitHub Desktop.
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
| redirects = File.read("redirects.txt").split_lines.map{|r| r.split(",") } | |
| redirects.each do |from, to| | |
| path = "source/#{from}" | |
| File.write(path, to) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment