Im trying to replace string with variable with this command but not works
Please help me with this
Get rid of the single quotes. They prevent variable expansion.
If HOMEx="test" this becomes: sed "/AXG/s/;/test/g"
Beware though: if the variable HOMEx contains something sed recognises you'll get an error. In this case the main things would be a backreference like "\1" or forward slash "/".