This is the file you want to use as a template
The contents of this file will be copied to each file listed in the destination_list.txt
| destfile1.md.sample | |
| destfile2.md.sample | |
| destfile3.md.sample |
| #!/bin/sh | |
| while read FILE | |
| do | |
| cp template.md $FILE | |
| done < destination_list.txt |
Sometimes I have a file that is to be used as a template that I need to copy to multiple files that are listed in a text file.
Just thought I would share how to do it :)