Writing Complex Scripts in HBase Shell

The Story

HBase installations include a shell for running arbitrary commands.
For instance, if you want to view all of your snapshots, you can do something like:

[me@server ~]$ hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version ...
more ...