On Wednesday, November 21, 2001, at 12:39 pm, [log in to unmask] wrote:
> personally i'd use the sam/acme command language.
> structural regexps are great:
>
> ,x/\n[^\n]/x/\n/c/ /
>
> i.e. for every newline not followed by a newline,
> change it to a space.
That's looks pretty close to APL to me :-) Is this the Rod Pike, Lucent
thing? Does it compile under Mac OS X?
> sed's alright until you want to deal with things in a non
> line-oriented manner. that's why the C was easier in this case.
Hence my clunky tr '\n' ^. But Ondra's N function demonstrates that sed's
up to the job. It's just that I'm not up to understanding these more
profound seditudes.
--
el bid
|