Issue
I would like to use a shell script variable to add it to the xml code, but I can't find the way how to do it.
variable="1234"
-X '<delete_target target_id="iwantvariablehere"/>'
Solution
You can embed variables in double-quoted stings, like so:
"<delete_target target_id=\"$variable\"/>"
Embedding variables will not work if you use single-quoted strings!
Some more explanation can be found at (for example) http://www.dreamsyssoft.com/unix-shell-scripting/variables-tutorial.php
Answered By - Martin Tournoij