Course Management Scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
239 B

#!/bin/bash
while read USER; do
echo -n "$USER: "
NUM=`find $(eval echo "~$USER") -type f -not -name '.*' | wc -l`
if [ $NUM -eq 0 ]; then
echo -ne "\x1b[1;31m"
fi
echo "$NUM"
if [ $NUM -eq 0 ]; then
echo -ne "\x1b[0m"
fi
done