0e20a72001
used to cleanup old files, and replace it by -delete which has been present in our find(1) for ages now.
12 lines
315 B
Bash
Executable File
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
|