Updated bash code blocks