Skip to content

Instantly share code, notes, and snippets.

@jamesgecko
Created October 20, 2012 00:02
Show Gist options
  • Save jamesgecko/b8106602fa1a0bdc481e to your computer and use it in GitHub Desktop.
Save jamesgecko/b8106602fa1a0bdc481e to your computer and use it in GitHub Desktop.
require 'csv'
file_path = 'hack_channel_offers_sc.csv'
CSV.open(file_path, 'r') do |category_id, offer_id, offer_name, score|
printf '.'
end
printf "\n"
James-Denton:~ jdenton$ cat hack_channel_offers_sc.csv | wc -l
1388
James-Denton:~ jdenton$ ruby foo.rb
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment