在ubuntu中移动50000张图片的图片的时候遇到如下问题:
-bash: /bin/mv: Argument list too long
解决
用find命令,注意:结束符不能省“ ;”
find sourcePath/ -name "*.txt" -exec mv {} targetPath/ \;
#or
find sourcePath/ -type f -exec mv {} targetPath/ \;
参考自
链接
在ubuntu中移动50000张图片的图片的时候遇到如下问题:
-bash: /bin/mv: Argument list too long
解决
用find命令,注意:结束符不能省“ ;”
find sourcePath/ -name "*.txt" -exec mv {} targetPath/ \;
#or
find sourcePath/ -type f -exec mv {} targetPath/ \;
参考自
链接