[SOLVED] Restrict output to display one file each?
I use 'grep -Ri "mypattern" .' to search for all files in the current directory recursively that contain "mypattern".
But this command returns every single occurence, so that if a given file has several occurences of the pattern, the screen fills up pretty quick.
More than likely, there's a way to restrict the output so that it only displays each file once, no matter how many occurences it contains, but I couldn't find how to do it.
Does someone know?