change code blocks to bash