#!/bin/bash | |
directory='/var/lib/graphite/whisper' | |
for file in $(find $directory -type f -name '*.wsp' -print); do | |
whisper-info $file > /dev/null 2>&1 | |
[ $? -ne 0 ] && rm -v $file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment