I am using sed to replace from a value in a text file. I am doing this for multiple values and some have && in the middle of the value and some have & as the 3rd and 8th characer, etc. How do i just pass in the value without it appending?
echo $myvar > temp.txt
sed -i "s/originaltext/$(cat temp.txt)/" file.yaml