following the wrox book Shell Scripting: Expert Recipes for Linux, Bash and more