[ol]cd big_dir limit=200 n=0 for f in *; do new_dir="../big_dir_$(printf "%03d" $((n / limit + 1)))" [ -d "$new_dir" ] || mkdir "$new_dir" mv "$f" "$new_dir" done [/ol]复制代码