ItachiSan

Bash scripting concept

Oct 18th, 2013
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo 'Iniziamo il cazzeggio'
  4.  
  5. for i in {1..100}
  6. do
  7.     touch $i.txt
  8.     echo "Ciao mondo!" >> $i.txt
  9. done
  10.  
  11. if [[ $1 = "c" ]]; then
  12.     rm *.txt
  13.     echo 'Tutti i files rimossi!'
  14.     exit;
  15. fi
  16.  
  17. echo 'Ora hai 100 files... Buona cancellazione! :D'
  18. echo 'P.S. Scopri il segreto per togliere i 100 files con la magiaaaaa'
  19. exit
Advertisement
Add Comment
Please, Sign In to add comment