Created
January 20, 2023 17:43
-
-
Save fernandomullerjr/2af60c2cd9664f15beaf81c25283825f to your computer and use it in GitHub Desktop.
Script para inserir elementos numa lista do REDIS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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