Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # This script creates an arbitrary number of files.
- echo -n "Enter the number of files you want created and press [ENTER]: "
- read num_files
- i="0"
- while [ $i -lt $num_files ]
- do
- touch file_$i
- i=$[$i+1]
- done
Add Comment
Please, Sign In to add comment