#!/bin/bash
for ((i=1;i<=50;i++));
do
mkdir /userdata/user"$i"
chmod 777 /userdata/user"$i"
done
#!/bin/sh
i=1
sum=0
for i in $(seq 0 100)
do
sum=$[$i+$sum]
done
echo $sum
#!/bin/sh
i=1
sum=0
for i in 1 2 3 4
do
sum=$[$i+$sum]
done
echo $sum