Files
greptweet/active-users.sh
2012-10-28 06:40:45 +01:00

9 lines
264 B
Bash
Executable File

#!/bin/bash
echo -n "$(date --iso-8601) "
for i in 1 10 20 30
do
echo -n "$i day(s): $(find /srv/www/greptweet.com/u -maxdepth 1 -mindepth 1 -type d -mtime -$i | wc -l), "
done
echo Total: $(find /srv/www/greptweet.com/u -maxdepth 1 -mindepth 1 -type d | wc -l)