Bash script utilities