Convert shell to command, file to template