Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Create directory if not exist
- if [ ! -d "testfiles" ]; then
- mkdir "testfiles";
- fi
- # Create files in the directory
- for((a=1;a<=10;a++)) do
- touch "testfiles/$a"
- done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement