w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Bash Copying the Contents of One Directory to every Directory contained within a Parent Directory

Be careful because you can get an infinite loop, normally exec should suffice but when you are using recursion this way it causes an infinite loop so use xargs:

find user/target/ -type d | xargs -I {} cp -r user/origin {}

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.