Document and simplify Bash example.
Escaping for outputs in Bash implementation.