├── .github └── FUNDING.yml ├── PROJETOS ├── exer21_zip.sh ├── exer32_until.sh ├── exer33_random.sh ├── exer34_forEach.sh ├── exer02_read.sh ├── exer14_userinterface.sh ├── exer30_email.sh ├── exer29_bc.sh ├── exer07_while_1.sh ├── exer03_cat.sh ├── exer04_remove.sh ├── exer08_while_2.sh ├── exer31_desligaMicros.sh ├── exer15_palindromo.sh ├── exer37_testeFuncao.sh ├── exer43_listaDiretorio.sh ├── exer05_positivo.sh ├── exer44_dialogCron.sh ├── exer11_userinterface.sh ├── exer13_userinterface.sh ├── exer42_palindromoFunction.sh ├── exer18_parImparTOP.sh ├── exer12_userinterface.sh ├── exer17_parImpar.sh ├── exer06_positivo_zero.sh ├── exer40_iptables.sh ├── exer39_iptables.sh ├── exer38_iptables.sh ├── exer27_cron.sh ├── exer16_fatorial.sh ├── exer23_carros.sh ├── exer19_maiorNumero.sh ├── exer24_senha.sh ├── exer28_imc.sh ├── exer25_cpf.sh ├── exer26_consulta.sh ├── exer45_excluiArquivos.sh ├── exer00_bash.sh ├── exer36_listaArquivos.sh ├── exer01_echo.sh ├── exer09_if_else.sh ├── exer20_ips.sh ├── exer41_samba.sh ├── exer35_mountyHall.sh ├── exer46_backup.sh ├── exer22_zipTOP.sh └── exer10_if_else_while.sh ├── CANIVETE └── canivete-shell.pdf ├── PDF ├── AULA11_SHELL_REGEXONE.pdf ├── AULA02_SHELL_INTRODUCAO.pdf ├── AULA01_SHELL_APRESENTACAO.pdf ├── AULA03_SHELL_PRIMEIROSPASSOS.pdf ├── AULA10_SHELL_INTERFACEUSUARIO.pdf ├── AULA05_SHELL_PROG_SCRIPT_PART1.pdf ├── AULA06_SHELL_PROG_SCRIPT_PART2.pdf ├── AULA07_SHELL_CONSTRUCOES_PART1.pdf ├── AULA08_SHELL_CONSTRUCOES_PART2.pdf ├── AULA09_SHELL_FUNCOES_PARAMETROS.pdf └── AULA04_SHELL_TUDOQVC_QUERIASABER.pdf ├── PRÁTICAS ├── Prática_Aliases.txt ├── Exercício01_Enunciado_Shell.txt ├── Exercício02_Enunciado_Shell.txt ├── Exercício03_Enunciado_Shell.txt ├── Exercício04_Enunciado_Shell.txt ├── Exercício05_Enunciado_Shell.pdf ├── Exercício06_Enunciado_Shell.pdf ├── Exercício07_Enunciado_Shell.txt ├── Exercício08_Enunciado_Shell.txt ├── Exercício09_Enunciado_Shell.txt ├── Exercício10_Enunciado_Shell.txt ├── ExercícioExtra_Enunciado_Shell.txt └── Exercício05_Enunciado_Shell - Resposta.sh ├── AAI └── Atividade Autoinstrucional.pdf ├── LICENSE └── README.md /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: joaopauloaramuni 4 | -------------------------------------------------------------------------------- /PROJETOS/exer21_zip.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PROJETOS/exer21_zip.sh -------------------------------------------------------------------------------- /PROJETOS/exer32_until.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PROJETOS/exer32_until.sh -------------------------------------------------------------------------------- /CANIVETE/canivete-shell.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/CANIVETE/canivete-shell.pdf -------------------------------------------------------------------------------- /PROJETOS/exer33_random.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PROJETOS/exer33_random.sh -------------------------------------------------------------------------------- /PROJETOS/exer34_forEach.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PROJETOS/exer34_forEach.sh -------------------------------------------------------------------------------- /PDF/AULA11_SHELL_REGEXONE.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PDF/AULA11_SHELL_REGEXONE.pdf -------------------------------------------------------------------------------- /PROJETOS/exer02_read.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Digite seu nome: " 4 | read fnome 5 | echo "Seu nome é: $fnome " 6 | -------------------------------------------------------------------------------- /PROJETOS/exer14_userinterface.sh: -------------------------------------------------------------------------------- 1 | nome=$( dialog --stdout --inputbox "Digite seu nome:" 0 0 ) 2 | echo "O seu nome é: $nome" -------------------------------------------------------------------------------- /PDF/AULA02_SHELL_INTRODUCAO.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PDF/AULA02_SHELL_INTRODUCAO.pdf -------------------------------------------------------------------------------- /PRÁTICAS/Prática_Aliases.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PRÁTICAS/Prática_Aliases.txt -------------------------------------------------------------------------------- /AAI/Atividade Autoinstrucional.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/AAI/Atividade Autoinstrucional.pdf -------------------------------------------------------------------------------- /PDF/AULA01_SHELL_APRESENTACAO.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PDF/AULA01_SHELL_APRESENTACAO.pdf -------------------------------------------------------------------------------- /PROJETOS/exer30_email.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Teste" | mail -s "Assunto" joaopauloaramuni@gmail.com 4 | echo "Enviado!" 5 | -------------------------------------------------------------------------------- /PDF/AULA03_SHELL_PRIMEIROSPASSOS.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PDF/AULA03_SHELL_PRIMEIROSPASSOS.pdf -------------------------------------------------------------------------------- /PDF/AULA10_SHELL_INTERFACEUSUARIO.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PDF/AULA10_SHELL_INTERFACEUSUARIO.pdf -------------------------------------------------------------------------------- /PDF/AULA05_SHELL_PROG_SCRIPT_PART1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PDF/AULA05_SHELL_PROG_SCRIPT_PART1.pdf -------------------------------------------------------------------------------- /PDF/AULA06_SHELL_PROG_SCRIPT_PART2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PDF/AULA06_SHELL_PROG_SCRIPT_PART2.pdf -------------------------------------------------------------------------------- /PDF/AULA07_SHELL_CONSTRUCOES_PART1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PDF/AULA07_SHELL_CONSTRUCOES_PART1.pdf -------------------------------------------------------------------------------- /PDF/AULA08_SHELL_CONSTRUCOES_PART2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PDF/AULA08_SHELL_CONSTRUCOES_PART2.pdf -------------------------------------------------------------------------------- /PDF/AULA09_SHELL_FUNCOES_PARAMETROS.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PDF/AULA09_SHELL_FUNCOES_PARAMETROS.pdf -------------------------------------------------------------------------------- /PDF/AULA04_SHELL_TUDOQVC_QUERIASABER.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PDF/AULA04_SHELL_TUDOQVC_QUERIASABER.pdf -------------------------------------------------------------------------------- /PRÁTICAS/Exercício01_Enunciado_Shell.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PRÁTICAS/Exercício01_Enunciado_Shell.txt -------------------------------------------------------------------------------- /PRÁTICAS/Exercício02_Enunciado_Shell.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PRÁTICAS/Exercício02_Enunciado_Shell.txt -------------------------------------------------------------------------------- /PRÁTICAS/Exercício03_Enunciado_Shell.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PRÁTICAS/Exercício03_Enunciado_Shell.txt -------------------------------------------------------------------------------- /PRÁTICAS/Exercício04_Enunciado_Shell.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PRÁTICAS/Exercício04_Enunciado_Shell.txt -------------------------------------------------------------------------------- /PRÁTICAS/Exercício05_Enunciado_Shell.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PRÁTICAS/Exercício05_Enunciado_Shell.pdf -------------------------------------------------------------------------------- /PRÁTICAS/Exercício06_Enunciado_Shell.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PRÁTICAS/Exercício06_Enunciado_Shell.pdf -------------------------------------------------------------------------------- /PRÁTICAS/Exercício07_Enunciado_Shell.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PRÁTICAS/Exercício07_Enunciado_Shell.txt -------------------------------------------------------------------------------- /PRÁTICAS/Exercício08_Enunciado_Shell.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PRÁTICAS/Exercício08_Enunciado_Shell.txt -------------------------------------------------------------------------------- /PRÁTICAS/Exercício09_Enunciado_Shell.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PRÁTICAS/Exercício09_Enunciado_Shell.txt -------------------------------------------------------------------------------- /PRÁTICAS/Exercício10_Enunciado_Shell.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PRÁTICAS/Exercício10_Enunciado_Shell.txt -------------------------------------------------------------------------------- /PRÁTICAS/ExercícioExtra_Enunciado_Shell.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaopauloaramuni/shellscript/HEAD/PRÁTICAS/ExercícioExtra_Enunciado_Shell.txt -------------------------------------------------------------------------------- /PROJETOS/exer29_bc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Utilização da calculadora básica (bc) do shell 4 | 5 | a=5.66 6 | b=8.67 7 | c=`echo $a + $b | bc` 8 | echo "$a + $b = $c" 9 | -------------------------------------------------------------------------------- /PROJETOS/exer07_while_1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cont=1 4 | while [ $cont -le 10 ] 5 | do 6 | echo "cont --> $cont" 7 | cont=`expr $cont + 1` 8 | done 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /PROJETOS/exer03_cat.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if cat $1 4 | then 5 | echo -e "\n\nArquivo $1 executado com sucesso" 6 | else 7 | echo -e "\n\nArquivo $1 não pode ser executado" 8 | fi 9 | -------------------------------------------------------------------------------- /PROJETOS/exer04_remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if rm $1 4 | then 5 | echo -e "\n\n Arquivo $1 removido com sucesso" 6 | else 7 | echo -e "\n\n Arquivo $1 nao pode ser removido" 8 | fi 9 | -------------------------------------------------------------------------------- /PROJETOS/exer08_while_2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cont=1 4 | while [[ $cont -le 10 || $cont -eq 11 ]] 5 | do 6 | echo -e "cont --> $cont" 7 | cont=`expr $cont + 1` 8 | done 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /PROJETOS/exer31_desligaMicros.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ip=1 4 | endip=20 5 | until [ $ip -gt $endip ] 6 | do 7 | ssh root@192.168.1.$ip "shutdown -h now" 8 | ip=`expr $ip + 1` 9 | done 10 | -------------------------------------------------------------------------------- /PROJETOS/exer15_palindromo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | read -p "Digite uma palavra: " palavra 4 | 5 | reverse="$(echo $palavra | rev)" 6 | 7 | if [ "$reverse" = "$palavra" ] 8 | then { 9 | echo "É Palíndromo !" 10 | } 11 | else { 12 | echo "Não é Palíndromo !" 13 | } 14 | fi 15 | -------------------------------------------------------------------------------- /PROJETOS/exer37_testeFuncao.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function funcaoTeste(){ 4 | echo "Todos os argumentos da funcao teste(): $*" 5 | echo "Primeiro argumento: $1" 6 | echo "Segundo argumento: $2" 7 | echo "Terceiro argumento: $3" 8 | return 9 | } 10 | #Chamada da funcao 11 | funcaoTeste Oi Tim Vivo 12 | -------------------------------------------------------------------------------- /PROJETOS/exer43_listaDiretorio.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo -n "Informe o diretório" 3 | read diretorio 4 | 5 | ls -l $diretorio | while read linha; do 6 | 7 | if [ ${linha:0:1} = "d" ]; then 8 | echo $linha | awk '{print $9 " (dir)"}' 9 | else 10 | echo $linha | awk '{print $9}' 11 | fi 12 | 13 | done 14 | -------------------------------------------------------------------------------- /PROJETOS/exer05_positivo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #Testa quantidade de argumentos digitados pelo usuário 4 | #----------------------------------------------------- 5 | if [ $# -eq 0 ] 6 | then 7 | echo -e "$0: