Implement 'as-history' option for cat command.

This lets you show only the series of commands entered, as in the
bash history.