Created
January 23, 2013 21:52
-
-
Save taylortrimble/4614149 to your computer and use it in GitHub Desktop.
I needed to put a leading backslash before spaces to make my shell happy, so I made this.
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
repos = File::open( "/Users/Trimble/Desktop/r", "r" ).read | |
output_file = File::open( "/Users/Trimble/Desktop/er.txt", "w" ) | |
repos.each_line do |line| | |
output_file.puts line.gsub(' ', '\ ') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment