From: William James Date: 2005-10-27T20:27:03+09:00 Subject: Re: Newbie help: File searching and writing output to new file William James wrote: > 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 ruby -ne"print if /redir/" ex*.log >out.txt