IsraelTorres

CTF Game File Directory Creator

Jun 3rd, 2011
288
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Israel Torres
  3. # Thu Jun  2 22:18:26 PDT 2011
  4. # CTF Game File Directory Creator
  5. #
  6. ctfcat[1]="game 1"
  7. ctfcat[2]="game 2"
  8. ctfcat[3]="game 3"
  9. ctfcat[4]="game 4"
  10. ctfcat[5]="game 5"
  11.  
  12. for ((index=1; index <=5; index++)); do
  13.     for ((level=100; level<=500; level=$((level+100)))); do
  14.         mkdir -p "${ctfcat[index]}/$level"
  15.     done
  16. done
  17. # EOF
RAW Paste Data