Comments on: How to Copy a File to Multiple Directories in Linux https://www.tecmint.com/copy-file-to-multiple-directories-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 18:39:41 +0000 hourly 1 By: Roshan https://www.tecmint.com/copy-file-to-multiple-directories-in-linux/comment-page-1/#comment-1785526 Fri, 06 May 2022 09:17:36 +0000 http://www.tecmint.com/?p=23784#comment-1785526 In reply to Chris.

This did not work for me.

]]>
By: Martin Joergensen https://www.tecmint.com/copy-file-to-multiple-directories-in-linux/comment-page-1/#comment-1052622 Thu, 25 Oct 2018 13:45:49 +0000 http://www.tecmint.com/?p=23784#comment-1052622 In reply to Chris.

@Chris, thanks a lot!

]]>
By: Aaron Kili https://www.tecmint.com/copy-file-to-multiple-directories-in-linux/comment-page-1/#comment-1052341 Wed, 24 Oct 2018 13:41:56 +0000 http://www.tecmint.com/?p=23784#comment-1052341 In reply to Chris.

@Chris

Many thanks for the useful feedback.

]]>
By: Chris https://www.tecmint.com/copy-file-to-multiple-directories-in-linux/comment-page-1/#comment-1052155 Tue, 23 Oct 2018 22:16:51 +0000 http://www.tecmint.com/?p=23784#comment-1052155 In reply to Martin Joergensen.

I believe it would just be this:

echo /home/aaronkilik/test/sys_info1.sh /home/aaronkilik/tmp/sys_info2.sh | xargs -n 1 cp -v {} /home/aaronkilik/bin/

]]>
By: Aaron Kili https://www.tecmint.com/copy-file-to-multiple-directories-in-linux/comment-page-1/#comment-883807 Sat, 15 Apr 2017 08:07:57 +0000 http://www.tecmint.com/?p=23784#comment-883807 In reply to Martin Joergensen.

@Martin

Nice question. We’ll test this out and give you the solution, if possible. Thanks for writing back.

]]>