Guest User

Untitled

a guest
Dec 11th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # This script creates an arbitrary number of files.
  4.  
  5. echo -n "Enter the number of files you want created and press [ENTER]: "
  6. read num_files
  7.  
  8. i="0"
  9.  
  10. while [ $i -lt $num_files ]
  11. do
  12. touch file_$i
  13. i=$[$i+1]
  14. done
Add Comment
Please, Sign In to add comment