Last active
October 8, 2016 13:23
-
-
Save tkuchiki/61fb1a3e3b802337b0ab62ad01832c03 to your computer and use it in GitHub Desktop.
memcached の key 一覧を出力する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for item in $(echo "stats items" | nc localhost 11211 | grep number | tr ':' ' ' | awk '{print $3"_"$5}'); do echo "stats cachedump $(echo $item | awk -F '_' '{print $1, $2}')"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment