Answer the question
In order to leave comments, you need to log in
How to find and replace the variable field="1.0.0" with field="$var" in a file?
How to find and replace the variable field="1.0.0" with field="$var" in a file?
do:
a=`cat ../t.properties`
sed -i.bak 's/field=""/filed="$a"/g' data.xml
But, something doesn't work as it should.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question