Update code snippets to work with bash.