Skip to content

How to prevent Redis print OK or QUEUE in redis-cli command #13124

Closed Answered by sundb
truongan07 asked this question in Q&A
Discussion options

You must be logged in to vote

since OK and QUEUED are also response, redis-cli can't do this filter, but you can use grep to do it.
echo -e "MULTI\n GET key-0\n GET key-1\n GET key-2 \nEXEC" | redis-cli -h "127.0.0.1" -p 6379 | grep -Ev "OK|QUEUED"

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@truongan07
Comment options

@sundb
Comment options

Answer selected by truongan07
@truongan07
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants