Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 2004 20:55:03 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Parv <parv@pair.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: [OT] sed question
Message-ID:  <20040315205409.A40180@wonkity.com>
In-Reply-To: <20040316034154.GB3419@moo.holy.cow>
References:  <4054DD10.5060504@stevenfettig.com> <20040314164347.X35552@wonkity.com> <20040316034154.GB3419@moo.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 15 Mar 2004, Parv wrote:

> in message <20040314164347.X35552@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040315205409.A40180>