I want to incorporate something like:
for f in */*; do mv "$f" "${f%/*}/foo.${f##*.}"; done
Into my find x -exec y {} \;-style workflow.
The for loop construct & "$f" variable will likely be omitted; the loop will be substituted by standard -exec iterating behaviour, and the variable (containing the filename of the current iteration), by {}.
But it seems like these two different syntaxes are incompatible/problematic. Especially because of the conflicting braces and semicolons, etc.