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.

12 lines
377 B

#!/bin/bash
[ -z "$COURSE" ] && echo "Needs a COURSE set" && exit 1
[ -z "$1" ] && echo "Needs an assignment name" && exit 1
while read USER; do
for assn in $*; do
printf "%-20s\x1b[1;36m%-12s\x1b[0m" "$USER: " "$assn: "
du -sbh /course/$COURSE/assn/$USER/$assn | cut -f1 | sed 's/\([0-9]\)M/\1\x1b[1;33mM\x1b[0m/' | sed 's/\([0-9]\)G/\1\x1b[1;31mG\x1b[0m/'
done
done