shell命令如下
#!/bin/bash echo "$(redis-cli keys "_query*")" | while read LINE; do echo "del '$LINE'" | redis-cli done
关于怎么shell里面执行redis命令,简单如下
echo "commad" | redis-cli
echo "keys '*' " | redis-cli
shell命令如下
#!/bin/bash echo "$(redis-cli keys "_query*")" | while read LINE; do echo "del '$LINE'" | redis-cli done
关于怎么shell里面执行redis命令,简单如下
echo "commad" | redis-cli
echo "keys '*' " | redis-cli