Advanced bash-scripting learning