From: nobu.nokada@... Date: 2002-10-18T08:55:02+09:00 Subject: Re: one liner? --- split file at empty line Hi, At Fri, 18 Oct 2002 08:08:01 +0900, Dong wrote: > I need to split a file > > Part A > .... > .... > > Part B > .... > .... > > to files A, B, ... ruby -slne 'open($1,"w"){|f|f.puts $_}if/\APart\s+(\S+)/' -- -/= # No standard command line option to make paragraph mode... -- Nobu Nakada