Last active
May 27, 2019 19:30
-
-
Save HurricanKai/ffa77edb8d7d9720deaf40a5868add08 to your computer and use it in GitHub Desktop.
test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| if [ -f /var/test-0/f-0 ]; then | |
| echo "Files already exsist" | |
| fi | |
| i=1 | |
| while [ $i -le 5 ] | |
| do | |
| echo $i | |
| mkdir /var/test-$i | |
| j=1 | |
| while [ $j -le 5 ] | |
| do | |
| echo $i " - " $j | |
| echo $j > /var/test-$i/f-$j | |
| j=`expr $j + 1` | |
| done | |
| i=`expr $i + 1` | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment