#!/usr/koeki/bin/ruby # -*- coding: utf-8 -*- require 'csv' meibo = CSV.read("akita-2024.csv", headers:true) meibo.each do |row| if /大?中?小/i =~ row["区分"] print row.to_s end end