Я хочу сопоставить шаблон, используя SED и / или GREP, которые могут исключать некоторые алфавиты.
## This code will match the alphabet, how to exclude them?
## Here, the variable is string which we are matching.
argument=$2
grep "$(sed 's/./&.*/g' <<< "$argument")" "$file_name"
shift ;;
# Possible output
$ sh match_the_pattern.sh -c aeiou words.txt
cyts
flybs
glhs
lphs
mrhs
nmphs
# As you can see, it is posting the words but execluding the characters from given string.