Bash helper script