Skip to content

Instantly share code, notes, and snippets.

@HurricanKai
Last active May 27, 2019 19:30
Show Gist options
  • Select an option

  • Save HurricanKai/ffa77edb8d7d9720deaf40a5868add08 to your computer and use it in GitHub Desktop.

Select an option

Save HurricanKai/ffa77edb8d7d9720deaf40a5868add08 to your computer and use it in GitHub Desktop.
test
#! /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