#bash command to make alot of directories

17 messages · Page 1 of 1 (latest)

plush mist
#

its for an experiment

wraith current
plush mist
#

just need to make 32 thousand folders

#

the max that fat32 allows

wraith current
#

Or you can use xargs to speed up

 echo d{1..32000} | xargs -P0 -n 100 mkdir 
plush mist
#

thank you

#

huh

#

what would be the xargs one got saving it to a file?

wraith current
plush mist
#

like to make a file, like this is a file, and save it as e1 for example

wraith current
#

If you want to use a different prefix, such as e, echo e{1...36000}.

#

Or if you want to create files instead of directories, replace mkdir with touch

plush mist
#

nvm then

#

I got it

wraith current
#

... solved