linux复制文件夹中前10个文件
ls |head -n 10 |xargs -i cp -r {} /target
或
find . -maxdepth 1 -type f |head -10 |xargs cp -t "$destdir"
linux移动文件夹中前10个文件
ls |head -n 10 |xargs -i mv {} /target
linux复制文件夹中前10个文件
ls |head -n 10 |xargs -i cp -r {} /target
或
find . -maxdepth 1 -type f |head -10 |xargs cp -t "$destdir"
linux移动文件夹中前10个文件
ls |head -n 10 |xargs -i mv {} /target