Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
約 5000 個の画像を含むディレクトリがあり、それぞれ 100 個の画像を含む 50 個のフォルダー (作成する必要があります) に分割/移動したいと考えています。
ターミナルを使用してこれを行う方法はありますか?
私はOS Xを実行しています。
i=0; for f in *; do d=dir_$(printf %03d $((i/100+1))); mkdir -p $d; mv "$f" $d; let i++; done