Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!bellcore!decvax!decuac!cvl!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.unix-wizards Subject: Re: Patch to find(1) to find large files. Message-ID: <70@umcp-cs.UUCP> Date: Sat, 8-Jun-85 22:59:38 EDT Article-I.D.: umcp-cs.70 Posted: Sat Jun 8 22:59:38 1985 Date-Received: Tue, 11-Jun-85 02:37:02 EDT References: <1842@ukma.UUCP> <663@lsuc.UUCP> <1315@hammer.UUCP> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 30 (This doesn't belong in net.bugs.4bsd anymore...) > Do you run find on your machine every night? Do you know what it has > to go through just to find out if a file is three days old and smaller > than 10 blocks or owned by `fred' or setuid root? Yes, which is why I tried to combine all the things we need done for removal of files into one big find script: #! /bin/sh # # find_cleanup - find the files that should be removed and clean them # out of the file system. find / \( \( -name '#*' -atime +1 \) \ -o \( -name ',*' -atime +1 \) \ -o \( -name rogue.sav -atime +7 \) \ -o \( \( -name '*.bak' \ -o -name '*.dvi' \ -o -name '*.CKP' \ -o -name '.*.bak' \ -o -name '.*.CKP' \) -atime +3 \) \ -o \( -name '.emacs_[0-9]*' -atime +7 \) \ -o \( -name core \) \ -o \( -user guest -atime +9 \) \ \) -print -exec rm -f {} \; > /tmp/.cleanup 2>&1 -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251) UUCP: seismo!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland