From: William James Date: 2005-10-27T20:22:07+09:00 Subject: Re: Newbie help: File searching and writing output to new file William James wrote: > ruby -e"ARGF.each_line{|x|puts x if x[/redir/]}" ex*.log >out.txt ruby -ne"puts $_ if /redir/" ex*.log >out.txt