Advertisement
mariussm

bash3

Jul 25th, 2011
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Create directory if not exist
  4. if [ ! -d "testfiles" ];  then
  5.         mkdir "testfiles";
  6. fi
  7.    
  8. # Create files in the directory
  9. for((a=1;a<=10;a++)) do  
  10.         touch "testfiles/$a"
  11. done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement