At 20.02.01 14'42, you wrote:
>Ryser Francois a écrit :
> >
> > Bonjours,
> >
> > Je cherche comment faire pour utilisé la fonction Substitute
> > "s/oldtext/newtest/"
> >
> > mon oldtext est ./db
> > mon newtext est /sup1/data
> >
> > le problème est le passage de / dans le texte.
>
>:s/\.\/db/\/sup1\/data/

Il y a beaucoup plus simple :

:s;./db;/supl/data;


--

Denis Bucher,   /  [EMAIL PROTECTED]       Tél. +41-22-8000625   \  Internet
Horus Networks /  horus-networks.com    Fax: +41-22-8000622   \  Services
               /  USA: (206) 888-2335   US Fax: (508) 437-1261  \  Provider

--
http://www-internal.alphanet.ch/linux-leman/ avant de poser
une question.
  • vi Ryser Francois
    • Re: vi Krassimir TODOROV EPFL-SIC/SII
    • Re: vi Marc SCHAEFER
    • Re: vi Yann Forget
      • Denis Bucher

Répondre à