解决办法:
# Using find ... -exec +
find folder2 -name '*.*' -exec mv --target-directory=folder '{}' +
# Using xargs
find folder2 -name '*.*' | xargs mv --target-directory=folder
命令,如果是cp、rm 、ls操作将以上命令里中的mv改为相应的命令即可;
解决办法:
# Using find ... -exec +
find folder2 -name '*.*' -exec mv --target-directory=folder '{}' +
# Using xargs
find folder2 -name '*.*' | xargs mv --target-directory=folder
命令,如果是cp、rm 、ls操作将以上命令里中的mv改为相应的命令即可;