Created
December 21, 2018 00:10
-
-
Save arthurcvm/3d26db0f7c9d917dd7169359dee5336c to your computer and use it in GitHub Desktop.
Script que pode receber 3 opções diferentes e cada uma delas o afeta de forma diferente.
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 | |
case $1 in | |
"-h") echo "Este é um script de teste, logo não há o que ajudar" | |
;; | |
"-v") echo "Versão 0.1" | |
;; | |
*) echo "Opção inválida! Digite $0 -h pra obter ajuda" | |
exit 1 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment