Skip to main content
added 62 characters in body
Source Link
Jhonathan
  • 3.8k
  • 4
  • 27
  • 23
  • One

      for i in {1..50}; do   mkdir s"$i"   done 
  • Two

      mkdir s{1..50} 

    This option works in bash, zsh and ksh93

  • Three

     mkdir $(printf "s%02i " $(seq 1 50)) 
  • One

      for i in {1..50}; do   mkdir s"$i"   done 
  • Two

      mkdir s{1..50} 

    This option works in bash, zsh and ksh93

  • One

     for i in {1..50}; do mkdir s"$i" done 
  • Two

     mkdir s{1..50} 

    This option works in bash, zsh and ksh93

  • Three

     mkdir $(printf "s%02i " $(seq 1 50)) 
  • One

    One

     for i in {1..50}; do mkdir s"$i" done 
for i in {1..50} do mkdir "s"$i done
  • Two

      
     mkdir s{1..50}  

    This option work atworks in bash, zsh and ksh93

  • One
for i in {1..50} do mkdir "s"$i done
  • Two

     
    mkdir s{1..50}

    This option work at bash, zsh and ksh93

  • One

     for i in {1..50}; do mkdir s"$i" done 
  • Two

     
     mkdir s{1..50}  

    This option works in bash, zsh and ksh93

added 63 characters in body
Source Link
Jhonathan
  • 3.8k
  • 4
  • 27
  • 23
  • One
for i in {1..50} do mkdir "s"$i done
  • Two

    mkdir s{1..50}

    This option work at bash, zsh and ksh93

  • One
for i in {1..50} do mkdir "s"$i done
  • Two

    mkdir s{1..50}
  • One
for i in {1..50} do mkdir "s"$i done
  • Two

    mkdir s{1..50}

    This option work at bash, zsh and ksh93

Formatting
Source Link
jasonwryan
  • 74.9k
  • 35
  • 204
  • 230
Loading
added 54 characters in body
Source Link
Jhonathan
  • 3.8k
  • 4
  • 27
  • 23
Loading
Source Link
Jhonathan
  • 3.8k
  • 4
  • 27
  • 23
Loading