I have a py file where we need to update the value of a variable table_name from a shell script using sed. The value will be like $ENV_NAME_ref_table considering we have already exported ENV_NAME as export ENV_NAME='staging'.
What should be the sed command?
I have tried some with sed -i but can't figure out the regex.
sed -i "s/table_name = ".*"/table_name = \"$ENV_NAME_reference\"/" /src/utils/abc.py