-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andras Lorincz wrote:
> I want to replaces all multiple spaces with one space. My first
> attempt was this:
>
> sed -e 's/\ */\ /g'
>
> This replaced all multiple spaces with one but as a side effect, sed
> inserted a space between all characters.
Andras Lorincz wrote:
I want to replaces all multiple spaces with one space. My first
attempt was this:
sed -e 's/\ */\ /g'
This replaced all multiple spaces with one but as a side effect, sed
inserted a space between all characters. Playing a little I tried
this:
sed -e 's/[\ ]\ */\ /g'
and this w
> From: Andras Lorincz [mailto:[EMAIL PROTECTED]
>
> I want to replaces all multiple spaces with one space. My
> first attempt was this:
>
> sed -e 's/\ */\ /g'
>
> This replaced all multiple spaces with one but as a side
> effect, sed inserted a space between all characters. Playing
> a lit
On Wed, May 11, 2005 at 03:01:47PM +0300, Andras Lorincz wrote:
> I want to replaces all multiple spaces with one space. My first
> attempt was this:
>
> sed -e 's/\ */\ /g'
The asterisk means zero or more, so it matches evven if there are
no spaces.
>
> This replaced all multiple spaces with
I want to replaces all multiple spaces with one space. My first
attempt was this:
sed -e 's/\ */\ /g'
This replaced all multiple spaces with one but as a side effect, sed
inserted a space between all characters. Playing a little I tried
this:
sed -e 's/[\ ]\ */\ /g'
and this works. The fact is
5 matches
Mail list logo