redis-test/test/exec_redis.sh
2022-02-14 23:19:11 +08:00

14 lines
180 B
Bash
Executable File

#!/bin/bash
function exec() {
ip="$1"
port="$2"
file="$3"
while read line
do
echo "> $line"
echo $line | redis-cli -h "$ip" -p "$port"
done < $file
}