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

next in thread | previous in thread | raw e-mail | index | archive | help
in message <20040314164347.X35552@wonkity.com>,
wrote Warren Block thusly...
>
> ...sed on other systems does handle \n and other literals in
> substitutions.  It's annoying enough that I just use Perl instead.
> 
> perl -pe 's/ /\n/g' my_test_text_document.txt
> 
> which actually would be better as
> 
> perl -pe 's/\s./\n/g' my_test_text_document.txt
                ^
                ^

Why do you have '.' after '\s'?  Did you mean '+' instead?


  - Parv

-- 



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