Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- idioma=$(echo $LANG | cut -d "_" -f 1)
- func_help () {
- if [ $1 == 'es' ];then
- echo "La ayuda esta en espaƱol."
- elif [ $1 == 'en' ]; then
- echo "help is in english"
- fi
- }
- option=$1
- case $option in
- --help)
- func_help $idioma
- ;;
- *)
- echo "Hola mundo!"
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement