im a newbie in RH9 and i have a few problems wif shell commands. can any1 pls help me wif that?
i m trying to use grep to show me words in my /usr/share/dict/words that contain the following conditions,
1) a single 'z' that is not adjacent to a vowel (this also includes words ending and starting wif 'z')
grep '[^aeiouzAEIOUZ]z\|z[^aeiouzAEIOUZ]' /usr/share/dict/words
but it show me words that is like
y is this so when i have areadi included z/Z not to be in the search?
i also tried
grep '^z\|^Z\|z$\|Z$' /usr/share/dict/words | grep '[^aeiouzAEIOUZ]z\|z[^aeiouzAEIOUZ]'
I thought i had areadi included no vowels or z infront or behind z, but y is 'Gonzalez' appearing in my search??
Having headache now. Pls help. THanks.