Advanced bash scripting guide