diff --git a/remove_old_logs.sh b/remove_old_logs.sh index bf0af6edd75e9bfb0a613b713e9bbb3ad71d8cf3..6b983cafd847c7c401247df4c6f303614bbf93e7 100755 --- a/remove_old_logs.sh +++ b/remove_old_logs.sh @@ -1,3 +1,3 @@ #!/bin/bash # Remove logs that are older than a month. -find /home/jvh/data/blast_latest -type f -name '*log*' -ctime +30 -exec rm -v {} \; +find /home/jvh/data/blast_latest -type f -name '*log*' -and -not -name '*remove_old_logs.sh' \ No newline at end of file