0

i have this script.sh

export teste=$(pwd)
echo "$teste"
sed -i 's/\String path[^w].*/String path = "$teste";/g' index.tmp

but the substituion stays like this

index.tmp

String path = "$teste";

I searched but I did not find anything like it.

Bruno Luis
  • 25
  • 10

1 Answers1

0

After the post i see a question that help me and my solution was this

sed -i "s~String path[^w].*~String path = $teste;~g" index.tmp

Bruno Luis
  • 25
  • 10