Instantly share code, notes, and snippets.

Embed
What would you like to do?
Delete redis keys with unmatched single quotes
redis-cli KEYS 'icc*' | xargs -d '\n' redis-cli DEL
@maestr0

This comment has been minimized.

maestr0 commented Dec 21, 2015

xargs -d '\n'  

doesn't work on OSX. Use this instead

xargs -0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment