14 lines
180 B
Bash
Executable File
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
|
|
}
|
|
|