From: Michael Campbell Date: 2002-10-18T23:59:11+09:00 Subject: Re: one liner? --- need help splitingi a file > Don't use this if efficiency is critical: > > $ cat file | ruby -e 'STDIN.read.split(/\n\n/).each_with_index > {|part,i| File.open("f.#{i}", "w").puts(part) }' You can save a _few_ CPU cycles by removing cat there, no? Or am I missing something subtle. ===== -- Use your computer to help find a cure for cancer: http://members.ud.com/projects/cancer/ Yahoo IM: michael_s_campbell __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com