Below is my bash variable
sql.txt file has below sql
select column_list from table
using sed to replace column_list dynamically according to the table
sed -i "s/COLUMN_LIST/'$COLUMN_LIST'/g;" sql.txt
but the sed command fails because of the commas in the column_list variable how to modify sed to do this?