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.

6 lines
191 B

#!/bin/bash
while read USER; do
printf "%-20s" "$USER: "
du -sbh $(eval echo "~$USER") | 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