Last active
March 6, 2019 06:23
-
-
Save josenicomaia/5f14cbd80e031ea15eb9486a8c6cc271 to your computer and use it in GitHub Desktop.
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/bash | |
| CONFIGURACOES=($(ls $HOME/.proxySelector-* | awk -F- '{print $2}')) | |
| for i in ${!CONFIGURACOES[@]}; do | |
| echo $(($i + 1))" - ${CONFIGURACOES[$i]}" | |
| done | |
| echo -n "Selecione uma opcao [1-${#CONFIGURACOES[@]}]: " | |
| read -n 1 SELECIONADO | |
| echo | |
| CONFIG_SELECIONADA=${CONFIGURACOES[$((SELECIONADO - 1))]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment