print (only) the name of file for a grep command

Search the occurence occur in *.pro files, and print only the name of files where the occurence was found.

[pene@donunix] grep occur *.pro | sed -e 's/\(.*\.pro\):.*/\1/' | uniq

No comments: