#!/bin/sh number=1000 let i=0 while [ "$i" -le $number ];do redis-cli -h 192.168.1.62 -p 19000 set name${i} ${i} #i=$(($i+1)) ((i++)) done