From: Daniel Sheppard Date: 2005-10-28T14:58:49+09:00 Subject: Re: Newbie help: File searching and writing output to new file Bah, stupid mail mangling programs. ruby -ne "i=0;open('found-redir-lines.txt','w'){|f|if /redir/;a=$_;f.puts a;i+=1;puts a if i<2;end}" ex*.log ruby -ne "i=0;open('found-redir-lines.txt','w'){|f|if /redir/;a=$_;f<