Anders Johansson wrote: > On Saturday 09 December 2006 20:36, [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
