Skip to content


同时创建1000个目录的shell脚本


#!/bin/bash
for i in `seq 1 1000`
do
mkdir directory_${i}
done

seq 1000|xargs -i mkdir dir{}

mkdir {0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}

mkdir {1..1000}

Posted in shell, 技术.

Tagged with .


No Responses (yet)

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.