Bash script to create local copies of a given filename that appears in given directories.
Thursday, May 26th, 2005I needed to write this script because, from time to time, a new file needs to be made in all of our branded directories that is an exact or near copy of another file in each brand.
#!/usr/local/bin/bash
# duplicate_file.sh [PATH] [FILE TO DUPLICATE] [NEW FILENAME]
#sample usage:
# ~/duplicate_file.sh ‘./brand_files/*/’ logo_text.tpl alt_logo_text.tpl
find $1 -maxdepth 0 | […]

