freebsd-dev/etc/periodic/daily/100.clean-disks
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

12 lines
315 B
Bash
Executable File

#!/bin/sh
#
# $Id: 100.clean-disks,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
exit 0 # do not run by default
find / \( ! -fstype local -o -fstype rdonly \) -a -prune -o \
\( -name '[#,]*' -o -name '.#*' -o -name a.out -o -name '*.core' \
-o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \
-a -atime +3 -delete