[Prev][Next][Index][Thread]

Re: a sed question...



"Ira Abramov (at work)" <ira@ard.huji.ac.il> wrote:
>  
>  moving an entire tree of a website from .html to .htm, using foreach, I am
>  trying to inject each file through such a commandline:
>  
>  cat 129.html | sed -e 'sg/.html/.htm/' > 129.htm

cat 129.html | sed 's/\.html/\.htm/g' > 129.htm

Evgeny


--
   ____________________________________________________________
  / Evgeny Stambulchik  <fnevgeny@plasma-gate.weizmann.ac.il>  \
 /  Plasma Laboratory, Weizmann Institute of Science, Israel \  \
 |  Phone : (972)8-934-3610  == | == FAX   : (972)8-934-3491 |  |
 |  URL   :    http://plasma-gate.weizmann.ac.il/~fnevgeny/  |  |
 |  Finger for PGP key >=====================================+  | 
 |______________________________________________________________| 


References: