I have a weird feeling...
alex(a)loes.org.lu wrote:
(...)
I have written a little script to change a html file.
Several variables
are entered and will then be replaced in a file using sed. But this
doesn't work. I change the file menu using:
eval sed "
s/prix1/\"${prix[1]}\"/
Looks to me like you're missing a \
s/prix1/\"${prix[1]}\"/
^ here
could you try with
s/prix1/\"\${prix[1]}\"/
also, I might suggest adding a 'g' at the end ...
s/prix1/\"\${prix[1]}\"/g
Let me know
----------------------------------------------------------------------
It is by caffeine alone I set my mind in motion, it is by the beans
of Java that thoughts acquire speed, the hands acquire shaking, the
shaking becomes a warning, it is by caffeine alone I set my mind in
motion."
(paraphrase of the mentat Piter DeVries from "Dune" by Frank Herbert)
----------------------------------------------------------------------
Serge Marelli, Luxembourg
----------------------------------------------------------------------