Apply template to new shell-script file