il faut déspecialiser les symbole speciaux avec \ et ca marche ;) François Boisson wrote:
> Le caractère / peut être changé par | ou un autre séparateur (j'ignore si > c'est dans la doc, ça a toujours été le cas sous Unix et donc sous Linux) > > Exemple: > [EMAIL PROTECTED]:~$ echo "/////" | sed -e 's|/|c|g' > ccccc > [EMAIL PROTECTED]:~$ > > François Boisson > > On Thu, 12 Jun 2003 20:05:32 +0200 > dcabaton <[EMAIL PROTECTED]> wrote: > > > Bonjour.... > > > > Je voudrais remplacer une chaine de caractere par une autre dans un > > fichier, le probleme vient des caracteres speciaux ( " et / ) !! > > > > Je voudrais remplacer.... > > create_pixmap (window1, " > > par... > > gtk_image_new_from_file("./images_installeur/ > > > > > > voici la commande... > > sed s/"create_pixmap (window1, > > ""/"gtk_image_new_from_file("./images_installeur/"/g interfaces_old.c > > > interfaces.c > > > > mais le souci vient des caracteres " et /..... > > > > Comment palier à ce probleme ?? > > > > Merci de votre aide ! > > > > David > > > > -- > > +------------------------------+ > > | David CABATON alias Obelix | > > +------------------------------+ > > | | > > | [EMAIL PROTECTED] | > > | | > > | Student in computer sciences | > > | | > > | GPG keys: 0x6BBB38E3 | > > | | > > +------------------------------+ > > > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact > > [EMAIL PROTECTED] > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]