I've used touch for single creation of blank files and multiple blank files from a list using cat foo.txt | xargs touch plus I ran across How to create multiple files with the Terminal? but I'm having issues figuring out how I can implement the creation of files that use a template from a list of files with pure bash.
File names in foo.txt file:
cpt-one.php
cpt-two.php
cpt-three.php
template.txt:
// lots of code
Is there a way I can use touch to create the file's from the list using what's in template.txt instead of creating a blank file?