Skip to content

Instantly share code, notes, and snippets.

@fernandomullerjr
Created January 20, 2023 17:43
Show Gist options
  • Select an option

  • Save fernandomullerjr/2af60c2cd9664f15beaf81c25283825f to your computer and use it in GitHub Desktop.

Select an option

Save fernandomullerjr/2af60c2cd9664f15beaf81c25283825f to your computer and use it in GitHub Desktop.
Script para inserir elementos numa lista do REDIS
#!/bin/sh
valores_base=0
valor_desejado=1000
while [ ${valores_base} -le ${valor_desejado} ];
do
echo "Iniciando a criação dos elementos"
valores_base=`expr ${valores_base} + 1`
echo "Teste_${valores_base}"
redis-cli -n 7 RPUSH balls "volleyballz_20${valores_base}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment