grep seems to always behave case-insensitive
Asked by
Jason Murphy
While trying to enforce a minimum password strength i try to use the code
echo $myvar | grep -c [A-Z]
however grep returns 1 line if $myvar has capital letters or not. further testing suggests that grep is acting case insensitive
as it will behave properly with numbers and special characters
there is no alias set for grep
i am using ubuntu 10.10 with latest updates
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu grep Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Ralph Corderoy
- Solved:
- Last query:
- Last reply:
To post a message you must log in.