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