Please try
egrep "^[a-z]{3}$" /usr/share/dict/words
egrep "^[[:lower:]]{3}$" /usr/share/dict/words
The first one returns both uppercase and lowercase words.
The second one returns lowercase words only.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It has to do with your locale setting. If you set
LC_ALLtoC, it should work as expected.From the
egrepmanpage under Ubuntu 11.04:You can try the commands from the following transcript to confirm this: