Unix & Linux: Why is this script giving an "Unexpected end of file" syntax error? (2 Solutions!!)

Published --