Skip to content

Instantly share code, notes, and snippets.

@rondale-sc
Created September 26, 2010 21:16
Show Gist options
  • Save rondale-sc/598319 to your computer and use it in GitHub Desktop.
Save rondale-sc/598319 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
str = STDIN.read
out = ''
str.each_line do |line|
if line[0] == 35
out << line
elsif line[0] != 35
out << "#" + "\t" + line
end
end
puts "#commentStart-12x12x4141l1" + "\n" + out + "\n" + "#commentEnd-12x12x4141l1" + "\n"
@rondale-sc
Copy link
Author

Next iteration can be found here. http://gist.github.com/599183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment