replace reinplace

Yves de Champlain yves at macports.org
Sun Apr 1 12:24:51 PDT 2007


Le 07-04-01 à 10:05, Elias Pipping a écrit :

> On Apr 1, 2007, at 3:39 PM, Yves de Champlain wrote:
>
>> On the other hand, maybe some grepper could translate that in  
>> 'basic mode' for me ?
>>
>> sed -E 's|\$\(DESTDIR\)[[:space:]]+\$\(|\$\(DESTDIR\)\$\(|g'
>
> sed 's|\$(DESTDIR)[[:space:]][[:space:]]*\$(|FOO|g'
>
> changes
>
>   $(DESTDIR) $(
>
> to
>
>   FOO
>
> if that is what you want.

Thanks a lot

yves




More information about the macports-dev mailing list