Skip to content

Instantly share code, notes, and snippets.

@vitaliel
Created November 29, 2008 13:51
Show Gist options
  • Save vitaliel/30238 to your computer and use it in GitHub Desktop.
Save vitaliel/30238 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'roo'
s = Excel.new("price-dd.xls")
s.default_sheet = s.sheets.first
#puts s.info
i = s.first_row
while i < s.last_row
name = s.cell(i, 1)
name.tr!("\r\n", ' ')
puts "Line: #{s.cell(i, 2).to_i} | #{i} #{name} | #{s.cell(i, 3).to_i}"
i += 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment