freebsd-dev/etc/periodic/daily/140.clean-rwho
Joerg Wunsch 0e20a72001 Finally remove the ancient `-exec rm -f {} ;' cruft that used to be
used to cleanup old files, and replace it by -delete which has been
present in our find(1) for ages now.
1999-03-21 12:34:06 +00:00

13 lines
211 B
Bash
Executable File

#!/bin/sh
#
# $Id: 140.clean-rwho,v 1.2 1997/08/17 17:55:30 pst Exp $
#
if [ -d /var/rwho ] ; then
echo ""
echo "Removing stale files from /var/rwho:"
cd /var/rwho && find . ! -name . -mtime +7 -delete
fi