scripts/trad/trad.sh
2024-01-08 14:38:13 +01:00

22 lines
428 B
Bash
Executable file

#!/bin/bash
PS3='Choix:'
langs=("fr-en" "en-fr" "fr-pt" "pt-fr")
echo
select trad in "${langs[@]}"; do
echo
case $trad in
"fr-en")
trans fr:en "$@";echo "---"
;;
"en-fr")
trans en:fr "$@";echo "---"
;;
"fr-pt")
trans fr:pt "$@";echo "---"
;;
"pt-fr")
trans pt:fr "$@";echo "---"
;;
*) echo "invalid option $REPLY";;
esac
done