Generate a find command with pruned directories based on a config file
You can use subcommands in a command:
echo &quot;This $(date) is a date calculated in the echo command&quot;

When you don't need additional control statements, you can use combined code like:
find /data/data/com.termux \
   $(awk '{printf(&quot;-path %s%s -prune -o &quot;, &quot;/data/data/com.termux/&quot;, $0)}' conf.file) \
   -print &gt;&gt; output

The awk command might be new for you, it is a replacement for your loop over the conf file. The same result can be found with sed:
sed 's#.*#/data/data/com.termux/&amp; -prune -o #' conf.file

I think awk is the best here.