Skip to content

Instantly share code, notes, and snippets.

@aabril
Created February 22, 2012 15:22
Show Gist options
  • Select an option

  • Save aabril/1885522 to your computer and use it in GitHub Desktop.

Select an option

Save aabril/1885522 to your computer and use it in GitHub Desktop.
sorted list of keys on redis, separated by ":" , for a older versions of redis-cli
echo "*" | redis-cli keys | sed "s/\s/\n/g" | cut -d ":" -f 2 | sort -n | more
@aabril
Copy link
Author

aabril commented Feb 22, 2012

mostrar cada key : value de redis en bash for i inecho "*" | redis-cli keys | sed "s/\s/\n/g" | sort -n; do echo $i" "echo $i | redis-cli get; done;

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