in reply to How to make sure only case-sensitive grep's get pushed

Is it intentional that you have newlines in both keys an values?

And what is a "case-sensitive mismatch"? Do you want to search file contents, or just file names? In your snippet, where does $key come from?

You probably want glob '*.mk' instead of *.mk.

See also: I know what I mean. Why don't you?.

Replies are listed 'Best First'.
Re^2: How to make sure only case-sensitive grep's get pushed
by Anonymous Monk on Mar 17, 2011 at 15:54 UTC

    The new line is a typo in both keys and values

    I want to search for file content.case-sensitivee mismatch meaning,for example am searching for the key "'seeklib" in the content of all the *.mk,the grep result should match the hash value('SeekLib),anything other than the value ,meaning seeklib,seekLib(note the case-sensitive difference) is a mismatch.

      So search case insensitively, and later compare all matches with the search string, and report only those matches are not eq the key.

      And note that the grep built-in searches in list, not in files.

        How do I search for the content of the files?is there a different utility?