In [3]:
#rmdir */
echo `date` "Creating directories..."
i=0
while read line; do
user=`echo $line | cut -f1 -d" "`
if [ ! -d $user ]; then
i=$((i+1))
mkdir $user
fi
cp NGSchool_* $user
done < ../participants.txt
echo `date` "$i directories created!"
In [ ]: