How to echo shell commands as they are executed?

In a shell script, how do I echo all shell commands called and expand any variable names? For example, given the fo...

How to echo shell commands as they are executed?

In a shell script, how do I echo all shell commands called and expand any variable names? For example, given the fo...