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
Written by Behnam Ahmad khan beigi
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#