turbotusmo-rs/data/chars_of.sh

6 lines
163 B
Bash
Executable file

#!/usr/bin/bash
set -e
allowed="azertyuiopqsdfghjklmwxcvbn"
cat "$1" | tr '[:upper:]' '[:lower:]' | sed 's/\(.\)/\1\n/g' | sort | uniq | grep -v -E "[$allowed]"