#!/usr/koeki/bin/ruby # coding: euc-jp while line=gets if /sai?toh/i =~ line print line end end