version 1.93, 2019/09/09 20:02:26 |
version 1.94, 2020/10/08 12:08:45 |
|
|
find -x . \ |
find -x . \ |
\( -path './ssh-*' -o -path ./.X11-unix -o -path ./.ICE-unix \ |
\( -path './ssh-*' -o -path ./.X11-unix -o -path ./.ICE-unix \ |
-o -path './tmux-*' \) \ |
-o -path './tmux-*' \) \ |
-prune -o -type f -atime +7 -execdir rm -f -- {} \; 2>/dev/null |
-prune -o -type f -atime +7 -delete 2>/dev/null |
find -x . -type d -mtime +1 ! -path ./vi.recover ! -path ./.X11-unix \ |
find -x . -type d -mtime +1 ! -path ./vi.recover ! -path ./.X11-unix \ |
! -path ./.ICE-unix ! -name . \ |
! -path ./.ICE-unix ! -name . \ |
-execdir rmdir -- {} \; >/dev/null 2>&1; } |
-delete >/dev/null 2>&1; } |
fi |
fi |
|
|
# Additional junk directory cleanup would go like this: |
# Additional junk directory cleanup would go like this: |
#if [ -d /scratch -a ! -L /scratch ]; then |
#if [ -d /scratch -a ! -L /scratch ]; then |
# cd /scratch && { |
# cd /scratch && { |
# find . ! -name . -atime +1 -execdir rm -f -- {} \; |
# find . ! -name . -atime +1 -delete |
# find . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \ |
# find . ! -name . -type d -mtime +1 -delete \ |
# >/dev/null 2>&1; } |
# >/dev/null 2>&1; } |
#fi |
#fi |
|
|