3 TRINITY_PATH
=${TRINITY_PATH:-.}
6 for i
in `find . -name "core.*" -exec ls -l {} \; | grep -v "$(date +%b\ %e)" | awk '{ print $9 }'`; do rm -f $i; done
8 # Remove corrupted cores
9 find .
-empty -name "core.*" -exec rm -f {} \
;
10 for i
in $
(file core.
* |
grep -v $TRINITY_PATH/trinity |
awk '{ print $1 }' |
sed 's/://'); do rm -f $i; done