[Note: the file contained at /usr/share/dict/words has more words than the one at /home/SRUNET/david.dailey/words
, though the latter may be more appropriate for certain purposes. See below for more details.]


find anything containing 'z' followed by 'x'

$ grep zx /usr/share/dict/words

find anything containing 'z' followed by 'y' (note: piping to more is often a good idea when using grep, since output from grep may be very large)

$ grep zy /home/SRUNET/david.dailey/words|more
azygous
blowzy
boozy
breezy
cozy
crazy
dizzy
dozy
enzyme
fizzy
floozy
frenzy
frizzy
fuzzy
glitzy
hazy
jazzy
lazy
muzzy
ritzy
schmaltzy
sleazy
snazzy

find anything ending in 'zy'

$ grep zy$ /usr/share/dict/words|more
barukhzy
blazy
bleezy
blowzy
bone-lazy
boozy
breezy
bronzy
Broonzy
buzzy
Chazy
chintzy
cozy
crazy
dazy
ditzy
dizzy
doozy
dozy
enfrenzy
Esterhazy
Eszterhazy
fezzy

define vowels and lowercase letters

$ v1=[aeiou]
$ l1=[a-z]

find anything beginning with a vowel and containing 'zy'

$ grep ^$v1.*zy /home/SRUNET/david.dailey/words|more

azygous
enzyme

find anything beginning with a lowercase letter and containing 'zy'

$ grep  ^$l1.*zy /home/SRUNET/david.dailey/words|more
breezy
buzzy
cozy
crazy
dizzy
enzyme
frenzy
fuzzy
hazy
jazzy
lazy
lazybones
snazzy

find anything beginning with z and ending with a vowel

$ grep ^z.*$v1$ /home/SRUNET/david.dailey/words

zambo
zamindari
zebra
zebu
zenana
zero
zingano
zingaro
zinnia
zippo
zirconia
zocle
zombie
zone
zoo
zoogloea
zoophyte
zouave
zucchini
zygoma
zygote
zymase
zyzzyva


defining a symbol to refer to a file name (so as to be able to avoid typing it again and again)

$w=/usr/share/dict/words
$d=/home/SRUNET/david.dailey/words
$echo $w
/usr/share/dict/words
$echo w
w
$grep ^z.*z$ $w
zizz
$grep ^y.*y$ $d
yearly
yearningly
yeasty
yeomanry
yesterday

* Note on available dictionaries:

$ w=/home/SRUNET/david.dailey/words
[wordstudy]$ d=/usr/share/dict/words
[wordstudy]$ ws=/homes/ddailey/public_html/data/wordstudy/BNCwordfreq63007
[wordstudy]$ wc $w $d $ws
  35916   35916  332175 /homes/ddailey/public_html/words
 479623  479623 4950996 /usr/share/dict/words
  63007  126014  767502 /homes/ddailey/public_html/data/wordstudy/BNCwordfreq63007
 578546  641553 6050673 total

In all the exercises using dictionaries, please substitute one of these for the one shown -- it will take a couple of years to prune out all the dead branches.

The last is derived from what I think are the 63007 most common words in English excerpted from the British National Corpus.