1 2 3 4 5 6 7 8
#!/bin/sh dict="$(printf "EN\nES" | fzf -e --prompt="Choose a dictionary>")" if [ "$dict" = "EN" ]; then fzf -e --prompt="EN" < /usr/share/dict/words.txt elif [ "$dict" = "ES" ]; then fzf -e --prompt="ES" < /usr/share/dict/palabras.txt fi