# directories from s1 to s50 for i in {1..50}; do mkdir s"$i" done # or mkdir s{1..50} #or mkdir $(printf "s%02i " $(seq 1 50))