Last Updated: February 25, 2016
·
521
· yottanami

Copy content of a file to all of files of a directory

Here is a very simple bash command helps you to copy content of a template file to all files of in current working directory :


for filename in `dir`; do cp ../template.rb $filename;print $filename; done