I tried the following snippet of code, but the sed command replaces with $var explicitly shown rather than as thr value of the var at that time. How can I solve this?s
for var in 01 02
do
sed -e 's/%\\include{removeMe}/\\include{chapter_$var}/g'
done