With -i flag you can grep a substring with insensitive-case: grep -i "substring_with_lower_or_upper_case"