Skip to content

Instantly share code, notes, and snippets.

@Grauwolf Grauwolf/rm-corrupt.sh forked from addisonj/rm-corrupt.sh
Last active Jan 3, 2016

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.