In my script, I am using below sed command
while read line; do
echo "$line"
sed -r "s/where /where $line ;/" Query.cql > Query-2.cql
done < $1
the value of $line is
where Column11 in ('Value1','Value2','Vlaue3') and Column12 in ('Value11','Value22','Vlaue32')
File Content ::
capture 'data.csv'
select * from test where
capture off;
After Executing
sed -r "s/where /where $line ;/" Query.cql > Query-2.cql
OUTPUT is ::
capture 'data.csv'
select * from test where
capture off;
Here, the string is not getting replaced. What went wrong?