Do you need to copy a single file to multiple dirs under #Linux, #FreeBSD, #Unix or #macOS? Try:
echo "/dir1/ /dir2/ /dir3/" | xargs -n 1 cp -v file.txt
See for more info https://www.cyberciti.biz/faq/linux-unix-copy-a-file-to-multiple-directories-using-cp-command/
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.