Is there a one-line command/script to copy one file to many files on Linux?
cp file1 file2 file3
copies the first two files into the third.
You can use shift:
shift
file=$1 shift for dest in "$@" ; do cp -r $file $dest done