Linux 移动当前目录的前N个文件到指定文件夹

mv `ls | head -N` ./subfolder1/

其中N表示需要移动的文件数目,subfolder1表示目标目录

参考自:
https://unix.stackexchange.com/questions/105040/how-to-move-the-first-x-files

posted @ 2020-05-27 20:07  xzhws  阅读(746)  评论(0编辑  收藏  举报