replace reinplace

Elias Pipping pipping at macports.org
Sun Apr 1 07:05:04 PDT 2007


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.


Regards,

Elias



More information about the macports-dev mailing list