Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
see what a file would look like on Windows
#!/usr/bin/env ruby
if ARGV.count == 1 && ARGV[0] != 0
contents =[0])
puts contents.gsub("\r\n","#VALID_LINE_BREAK#").gsub("\n","").gsub("\r","").gsub("#VALID_LINE_BREAK#", "\r\n")
puts "Invalid argument"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.