Command substitution - how?

This is actually possible to some degree, see: