Mailinglist Archive: opensuse (4446 mails)

< Previous Next >
Re: [opensuse] March of the Penguins?
  • From: Jos van Kan <vankan@xxxxxxxxxxxx>
  • Date: Sat, 09 Dec 2006 22:19:40 +0100
  • Message-id: <457B286C.7010109@xxxxxxxxxxxx>
Anders Johansson wrote:
> On Saturday 09 December 2006 20:36, jfweber@xxxxxxxxxxxx wrote:
>> often, and becomes and ex-human.
>> s and/an
>
> "an becomes and"? :)
>
> Hm, I actually don't know how you tell sed to replace the second hit on a line
> and leave the first
>
> s/and\(.*\)and/and\1an/
>
> works for this particular case, but I have a gut feeling there is a more
> general way of doing it
>

While an interesting problem in itself, the engineer's solution would be
s/d ex/ ex/
I know, lack of imagination and certainly not a more general way of doing it. :-)

Regards,
--
Jos van Kan registered Linux user #152704
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >