2018年11月13日 星期二

含有正序全部5個母音的英文單字

英文全部5個母音是 a, e, i, o, u,要找到這些母音依序出現的英文單字:
  • cat /usr/share/dict/words | \
    grep -E "[aA]+[^aeiouAEIOU]*[eE]+[^aeiouAEIOU]*[iI]+[^aeiouAEIOU]*[oO]+[^aeiouAEIOU]*[uU]+" | \
    xargs -n4 -d'\n'
這邊用到兩個操作子:
  • ^:代表否定
  • *:代表存在0個到多個字母

在這個資料庫裡面總共有54個,每4個一行列出來如下:
abstemious abstemiously abstemiousness abstentious
acheilous acheirous acleistous Aegiochus
affectious aleikoum anemious annelidous
Areithous arsenious arterious bacteriofluorescin
bacteriopurpurin bacterious beggar-my-neighbour caesious
facetious facetiously facetiousness fracedinous
half-serious half-seriously Lapeirousia majestious
metarsenious nonabstemious nonabstemiously nonabstemiousness
nonfacetious nonfacetiously nonfacetiousness overabstemious
overabstemiously overabstemiousness parecious pareciously
pareciousness pyroarsenious sexagesimo-quarto sulpharsenious
sulphoarsenious thioarsenious tragedious unabstemious
unabstemiously unabstemiousness unabstentious unfacetious
unfacetiously unfacetiousness

參考資料

_EOF_

沒有留言:

張貼留言