linux移动文件夹中前10个文件

linux移动文件夹中前10个文件

linux复制文件夹中前10个文件
ls |head -n 10 |xargs -i cp -r {} /target
linux移动文件夹中前10个文件
ls |head -n 10 |xargs -i mv {} /target

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>