Skip to content

Instantly share code, notes, and snippets.

Created August 11, 2011 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1138995 to your computer and use it in GitHub Desktop.
Save anonymous/1138995 to your computer and use it in GitHub Desktop.
# encoding: UTF-8
File.readlines(ARGV[0]).each do |line|
i = 0
line.split(//u).each do |w|
print " #{w}\n\n "
i = i + 1
if i % 5 == 0 and i % 10 != 0
print "\n\n "
elsif i % 10 == 0
print "\n"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment