Sunday, December 30, 2012

Copy to multiple destination

We can't copy a single file to multiple destination with just a single cp command. But we have a workaround.
If we want to copy a single file to multiple destination folders, then just follow the below command:
echo dir1 dir2 dir3 | xargs -n 1 cp file1


See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide

No comments: