template and bash script