Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 1998 09:27:02 +1000
From:      "Andrew Specht" <andrew@iaccess.com.au>
To:        "Greg Lehey" <grog@lemis.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: sed???
Message-ID:  <017401bd7d34$4dcb9180$e34a05cb@alpine.iaccess>

next in thread | raw e-mail | index | archive | help
woohooo

it worked :)

thanks for that

Andrew Specht                                             |  System
Administrator
E-mail:  andrew@iaccess.com.au                  |  Internet Access Australia
Internet:  http://www.iaccess.com.au              |  Melbourne, Australia

-----Original Message-----
From: Greg Lehey <grog@lemis.com>
To: Andrew Specht <andrew@iaccess.com.au>; freebsd-questions@FreeBSD.ORG
<freebsd-questions@FreeBSD.ORG>
Date: Monday, May 11, 1998 7:05 PM
Subject: Re: sed???


>On Mon, 11 May 1998 at 16:50:55 +1000, Andrew Specht wrote:
>> Hi
>>
>> I'm trying to figure out how to substitute multiple spaces from a text
file
>> with a single space using sed.
>>
>> this didn't work:
>>
>> sed /[" "]+//s//[" "]/ test
>
>No, it wouldn't.
>
>sed 's:   *: :g' test
>
>Those are three spaces before the *; the first two because that's the
>minimum you want to consider changing, and the third one because
>there's no + operator in sed.
>
>Greg
>--
>See complete headers for address and phone numbers
>finger grog@lemis.com for PGP public key
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?017401bd7d34$4dcb9180$e34a05cb>