I am executing

/bin/sed -i '/^$/d' $PRIMARY_K VALUE=`/bin/cat $PRIMARY_K` echo "$VALUE" PK=SYS NEW="$PK$VALUE" echo "New Primary Key Constraint for $s- $NEW" /bin/sed "s/$VALUE/$NEW/g" ../../../PartitioningUtility/sql/table7.sql > ../../../PartitioningUtility/sql/exe.sql last line /bin/sed "s/$VALUE/$NEW/g" is not replacing the value.
When I try with HARDCODED values, it's working. E.g. I tried

/bin/sed "s/MAYUR/SAWANT/g" Its working. Any suggestions.


Check Solution