Refer to wooledge wiki as bash scripting guide