[OT] sed question

Warren Block wblock at wonkity.com
Mon Mar 15 20:26:05 PST 2004


On Mon, 15 Mar 2004, Parv wrote:

> in message <20040314164347.X35552 at wonkity.com>,
> wrote Warren Block thusly...
> >
> > perl -pe 's/\s./\n/g' my_test_text_document.txt
>                 ^
>                 ^
>
> Why do you have '.' after '\s'?  Did you mean '+' instead?

Oops--you're correct.  \s+ for one or more whitespace characters.

-Warren Block * Rapid City, South Dakota USA


More information about the freebsd-questions mailing list