Tits and bits of bash scripting learnt while doing Masters simulations