Create a gist now

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
@maestr0

This comment has been minimized.

Show comment Hide comment
@maestr0

maestr0 Dec 21, 2015

xargs -d '\n'  

doesn't work on OSX. Use this instead

xargs -0

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