Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link

@maestr0 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
You can’t perform that action at this time.