I have a file called file.txt with say 3 words
ban
moon
funny
Now I want to match only the words with 3 or 4 characters
grep "[a-z]\{3,4\}" file.txt
This is not working..it stil matches all the 3 words, I was expecting only to match the first 2. What am I doing wrong here?