aboutsummaryrefslogtreecommitdiff
path: root/games/wrdl
blob: 2b4825144684979199c630f20beeee0de8b259c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
cat -- "${@:-/dev/stdin}" |
while read -r -a ws ; do
    for w in "${ws[@]}" ; do
        w=${w%%[^a-zA-Z]*}
        w=${w##*[^a-zA-Z]}
        [[ $w ]] || continue
        printf '%s\n' "$w"
    done
done | tr '[:upper:]' '[:lower:]'