bash scripting for dummies, third try