On Thu, Oct 05, 2006 at 11:48:43AM -0700, Scott Ballinger wrote: > > #!/bin/sh > TERM=ansi ; export TERM > cd /usr/yyy/XXX > /usr/ibm/uv/bin/uv "PHANTOM DUPCHECK" > # purge &ph& entries more than 2 days old > cd \&PH\& > find . -mtime +2 -name "DUPCHECK*" -print | xargs rm > > Yes, that is kind of an overkill, running the 'rm' every minute instead > of once per day; but this way it's all in one place and that much easier > to see what's going on when I re-visit this in the memory-impaired > future.
Your phantom files are going to all be the same size, unless there's a problem, right? I'd keep the ones that are not that size. So, if that size is, say, 50 bytes, do: find . -mtime +2 -name "DUPCHECK*" ! -size 50c -print | xargs rm ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
