Sha256: 53bff939aa53d0b691aced699e43743e97e3c4d94c31cd8cbc28c290078fe543
Contents?: true
Size: 835 Bytes
Versions: 1
Compression:
Stored size: 835 Bytes
Contents
Ccsv A pure-C CSV parser. == Installation gem install ccsv == Usage require 'rubygems' require 'ccsv' Ccsv.foreach("data.csv") do |line| # Do something with the line array end # print all logins Ccsv.foreach("/etc/passwd",":") do |line| puts line[0] end == Advanced usage Get users from passwd file, with UIDs between 1000 and 1010 and between 2000 and 2010. Works with numbers only! Third argument is column index, used for filtering, then one or more intervals. Ccsv.foreach("/etc/passwd",":",2,[1000..1010],[2000..2010]) do |line| puts line[0] end == Contacts Forks, pull-requests and other contacts via guthub: http://github.com/evan/ccsv/ == License Copyright 2012-2014 Sergey Zhumatiy Copyright 2007-2012 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccsv-1.1.0 | README.rdoc |