From: Stefan Scholl Date: 2002-10-18T23:49:01+09:00 Subject: Re: one liner? --- need help splitingi a file Massimiliano Mirra wrote: > $ cat file | ruby -e 'STDIN.read.split(/\n\n/).each_with_index {|part,i| File.open("f.#{i}", "w").puts(part) }' http://www.ling.helsinki.fi/~reriksso/unix/award.html :-)