zenwalk/blog

How to move the first x files

Opened this issue · 0 comments

# 利用 zsh 的特性
mv -- *(D.[1,5000]) ./subfolder1
find . -name 'Hello*.gz' | head -n 5000 | xargs -I {} mv {} /data01/path/