Grep list files once
You could do this, it will make grep only print the first match:
grep -m 1 -R "pattern" *
You can use the "uniq" command: http://unixhelp.ed.ac.uk/CGI/man-cgi?uniq
grep -R "my_pattern" * | sort -u
This will sort and give you unique values.