1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-29 23:36:40 +03:00

added share/scripts

This commit is contained in:
Igor Chubin 2020-06-15 18:49:14 +00:00
parent ad0fcd6297
commit 84a9ca3778

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
remove_by_name()
{
local query; query="$1"
local q
redis-cli KEYS "$query" | while read -r q; do
redis-cli DEL "$q"
done
}
if [ -z "$1" ]; then
echo Usage:
echo
echo " $0 QUERY"
exit 1
fi
remove_by_name "$1"