completed bash script