new to writing script files

thanks guys i managed to answer