I am trying to create a sequence of identical directories with names like 'file001' in sequence from 1 to 512. I am running the following in the shell:
for i in $(seq 001 512): do mkdir file$i done
Though this is creating all 512 directories, but they are being labelled as 'file1','file2'... instead of 'file001','file002' and so on. Can anyone please suggest some other way to create the folders in the way I require?