Add support for showing line endings in cat

This commit adds support for showing line endings (as '$'). This
is in the same vein as the GNU coreutils `-E` argument.