Sha256: 800e80a218852f85a38b2303dd84068b164b628d28d4443ba9ee5e822184e674

Contents?: true

Size: 231 Bytes

Versions: 34

Compression:

Stored size: 231 Bytes

Contents

#!/usr/bin/env ruby
require 'csv'

test_proc = eval "lambda {|row| #{ARGV.shift}}"

input = CSV.new(ARGF, :converters => :numeric)
output = CSV.new($stdout)

input.each do |row|
  if test_proc.call(row)
    output << row
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
advance-0.4.11 bin/csv_select_nh.rb
advance-0.4.10 bin/csv_select_nh.rb
advance-0.4.8 bin/csv_select_nh.rb
advance-0.4.7 bin/csv_select_nh.rb
advance-0.4.6 bin/csv_select_nh.rb
advance-0.4.5 bin/csv_select_nh.rb
advance-0.4.4 bin/csv_select_nh.rb
advance-0.4.3 bin/csv_select_nh.rb
advance-0.4.2 bin/csv_select_nh.rb
advance-0.4.1 bin/csv_select_nh.rb
advance-0.3.18 bin/csv_select_nh.rb
advance-0.3.16 bin/csv_select_nh.rb
advance-0.3.15 bin/csv_select_nh.rb
advance-0.3.14 bin/csv_select_nh.rb
advance-0.3.13 bin/csv_select_nh.rb
advance-0.3.12 bin/csv_select_nh.rb
advance-0.3.11 bin/csv_select_nh.rb
advance-0.3.10 bin/csv_select_nh.rb
advance-0.3.9 bin/csv_select_nh.rb
advance-0.3.8 bin/csv_select_nh.rb