I know I can search for a string with:
grep -n -d recurse 'snoopy' * and then it shows every file name and instance that contains that string, like:
file/name.txt:23 some snoopy here file/name2.txt:59 another snoopy there file/name2.txt:343 some more snoopy etc... The problem is that with many occurrences, the list is huge. How do I make it show only the actual file names that contain the string, without duplicates and without the occurrence?
Only like:
file/name1.txt file/name52.txt file/name28293.txt Thanks a lot for any help :)
-largument.