Re: script sh
PROFETA Mickael writes:
> Si si, sed sai faire, mais faut lui dire proprement, il ya plein de caracteres
> a proteger:
>
> le plus simple selon moi:
>
> cat config.h |sed s/'($DESTDIR)'/$DESTDIR/ >config.new
>
Il me semble aussi qu'il faut mettre un "g" pour spécifier qu'il fasse
toutes les substitutions et non pas juste la première.
sed -e "s/'($DESTDIR)'/$DESTDIR/g"
---------------------------------------------------
Nicolas Malandain
Laboratoire PSI -- http://www.insa-rouen.fr/psi
Dpt ASI - INSA Rouen -- http://asi.insa-rouen.fr
Tel : +33 2.32.95.98.83 - Fax : +33 2.32.95.97.08
e-mail : Nicolas.Malandain@insa-rouen.fr
---------------------------------------------------
"Un conducteur dangereux, c'est celui qui vous dépasse malgré tous vos
efforts pour l'en empêcher." Woody Allen
Reply to:
- References:
- script sh
- From: Loïc Le Guyader <loic.leguyader@laposte.net>
- Re: script sh
- From: profeta@crans.ens-cachan.fr (PROFETA Mickael)