Im trying to replace string with variable with this command but not works
Please help me with this
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
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 "/".