From: Dong Date: 2002-10-21T11:32:48+09:00 Subject: Re: one liner? --- split file at empty line On Mon, 21 Oct 2002 07:12:21 +0900, nobu.nokada@softhome.net wrote: > > $ ruby -00lne 'open($1,"w"){|f|f.puts $_}if/\APart\s+(\S+)/' > Thanks. It looks good to me. But it is missing the first Part. The file looks like: Some header Part Cu ... Part In .... Part O .... Part Se .... So far I got file In, O, and Se, but not Cu. Dong