Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "bemvindo ao minibash
- comandos disponiveis: listar sair"
- while :; do
- read -p '$ ' cmd
- case $cmd in
- listar)
- ls ;;
- sair)
- exit ;;
- '')
- continue ;;
- *)
- echo $cmd: comando invalido ;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement