GeoCitesSites.com

The While Loop in Linux
Administration Notes

C=8; while [ $C -lt 256 ]; do 
     mknod /dev/loop$C b 7 $C
     C=`expr $C + 1`
done


C=8; echo; echo "Creating loop device nodes."; \
   while [ $C -lt 256 ]; do mknod /dev/loop$C b 7 $C; \
   echo -n .; C=`expr $C + 1`; done; echo;

while [ -n "`ps ax | grep ftp | grep -v ftp`" ]; do
     echo "Waiting for ftp to finish"
done;