How to sort keys?

48 views
Skip to first unread message

ezeq

unread,
Apr 25, 2011, 11:19:27 AM4/25/11
to Redis DB
Hi,
I need to show the keys sorted from the redis-cli with the keys
command.
Any help?
Thanks

Josiah Carlson

unread,
Apr 25, 2011, 11:51:52 AM4/25/11
to redi...@googlegroups.com
Pipe the results into the 'sort' command.

- Josiah

> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>
>

paulino huerta

unread,
Apr 25, 2011, 3:54:15 PM4/25/11
to redi...@googlegroups.com
From command line:
$ <path-to-redis-cli>/redis-cli keys \* |  sort
Try:
<path-to-redis-cli>/redis-cli --help

--Paulino


2011/4/25 Josiah Carlson <josiah....@gmail.com>
Reply all
Reply to author
Forward
0 new messages